2007-07-13 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / class / Makefile
1 thisdir = class
2
3 MONO_POSIX := Mono.Posix
4 MONO_SYMBOLWRITER := Mono.CompilerServices.SymbolWriter
5
6 bootstrap_dirs := \
7         corlib                                  \
8         System                                  \
9         System.XML                              \
10         Mono.Security                           \
11         System.Security                         \
12         System.Configuration                    \
13         System                                  \
14         $(MONO_SYMBOLWRITER)
15
16 # Note that Mono.Security and System.Security aren't listed.
17 # We may have to add those if 'mcs' starts using them.
18 basic_SUBDIRS := corlib System System.XML System
19
20 net_1_1_bootstrap_SUBDIRS := $(bootstrap_dirs) PEAPI
21 net_2_0_bootstrap_SUBDIRS := $(bootstrap_dirs) PEAPI
22
23 net_1_1_java_SUBDIRS = \
24         System.Xml                                      \
25         System.Data                                     \
26         System.Drawing                                  \
27         Novell.Directory.Ldap                           \
28         System.DirectoryServices                        \
29         System.Runtime.Serialization.Formatters.Soap    \
30         System.Runtime.Remoting
31
32 common_dirs := \
33         corlib                          \
34         System                          \
35         System.XML                      \
36         Mono.Security                   \
37         System                          \
38         System.Security                 \
39         System.Configuration            \
40         System                          \
41         System.XML                      \
42         I18N                            \
43         System.Drawing                  \
44         System.EnterpriseServices       \
45         Mono.C5                         \
46         Mono.Data.Tds                   \
47         System.Transactions             \
48         System.Data                     \
49         Mono.Data                       \
50         Mono.GetOptions                 \
51         $(MONO_SYMBOLWRITER)            \
52         $(MONO_POSIX)                   \
53         Accessibility                   \
54         Managed.Windows.Forms           \
55         System.Web                      \
56         System.Web.Services             \
57         System.Web                      \
58         System.Runtime.Serialization.Formatters.Soap \
59         System.Runtime.Remoting         \
60         System.Configuration.Install    \
61         System.Management               \
62         Mono.Data.Sqlite                \
63         Mono.Data.SqliteClient          \
64         Mono.Data.SybaseClient          \
65         Mono.Data.TdsClient             \
66         System.Data.OracleClient        \
67         Microsoft.VisualC               \
68         Cscompmgd                       \
69         System.Design                   \
70         PEAPI                           \
71         Npgsql                          \
72         Compat.ICSharpCode.SharpZipLib  \
73         ICSharpCode.SharpZipLib         \
74         Compat.ICSharpCode.SharpZipLib  \
75         ByteFX.Data                     \
76         Commons.Xml.Relaxng             \
77         Novell.Directory.Ldap           \
78         Mono.Security.Win32             \
79         System.DirectoryServices        \
80         System.Messaging                \
81         System.ServiceProcess           \
82         System.Drawing.Design           \
83         Mono.Http                       \
84         Microsoft.Vsa                   \
85         Mono.Cairo                      \
86         IBM.Data.DB2                    \
87         Microsoft.JScript               \
88         CustomMarshalers                \
89         OpenSystem.C
90
91 default_dirs := FirebirdSql.Data.Firebird
92
93 net_2_0_dirs := \
94         System.Core                     \
95         Microsoft.Build.Framework       \
96         Microsoft.Build.Utilities       \
97         Microsoft.Build.Engine          \
98         Microsoft.Build.Tasks
99
100 net_2_1_dirs := \
101         corlib                  \
102         System                  \
103         System.Xml.Core \
104         System.Core             \
105
106 default_SUBDIRS := $(common_dirs) $(default_dirs)
107 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs)
108 net_2_1_SUBDIRS := $(net_2_1_dirs)
109
110 include ../build/rules.make
111
112 SUBDIRS = $(common_dirs) $(default_dirs) $(net_2_0_dirs) $(net_2_1_dirs)
113
114 # These libraries below are either unimplemented or don't compile, but
115 # I wrote makefiles for them.
116
117 BROKEN_SUBDIRS =
118
119 DIST_ONLY_SUBDIRS = \
120         $(BROKEN_SUBDIRS)
121
122 # No new makefiles for: System.Messaging, System.Web.Mobile,
123 # System.ServiceProcess
124
125 DISTFILES = \
126         ecma.pub                \
127         mono.pub                \
128         msfinal.pub             \
129         mono.snk                \
130         LICENSE                 \
131         README                  \
132         doc/API-notes           \
133         doc/NUnitGuidelines     \
134         doc/TemplateTest.cs     \
135         notes/BitVecto32.txt    \
136         $(monolite_files)
137
138 .PHONY: all-local $(STD_TARGETS:=-local)
139 all-local $(STD_TARGETS:=-local):
140         @:
141
142 basic_files = mcs.exe mscorlib.dll System.dll System.Xml.dll
143 monolite_files = $(basic_files:%=lib/monolite/%)
144
145 lib/monolite:
146         $(MKINSTALLDIRS) $@
147
148 $(monolite_files): | lib/monolite
149 $(monolite_files): lib/monolite/%: lib/basic/%
150         cp -p $< $@
151
152 $(basic_files:%=lib/basic/%):
153         cd $(topdir) && $(MAKE) profile-do--basic--all
154
155 dist-default: $(monolite_files)
156 dist-local: dist-default