* Makefile: integrate Mono.Mozilla wrapper in the build.
[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         Mono.Cecil                      \
48         System.Transactions             \
49         System.Data                     \
50         Mono.Data                       \
51         Mono.GetOptions                 \
52         $(MONO_SYMBOLWRITER)            \
53         $(MONO_POSIX)                   \
54         Accessibility                   \
55         Managed.Windows.Forms           \
56         System.Web                      \
57         System.Web.Services             \
58         System.Web                      \
59         System.Runtime.Serialization.Formatters.Soap \
60         System.Runtime.Remoting         \
61         System.Configuration.Install    \
62         System.Management               \
63         Mono.Data.Sqlite                \
64         Mono.Data.SqliteClient          \
65         Mono.Data.SybaseClient          \
66         Mono.Data.TdsClient             \
67         System.Data.OracleClient        \
68         Microsoft.VisualC               \
69         Cscompmgd                       \
70         System.Design                   \
71         PEAPI                           \
72         Npgsql                          \
73         Compat.ICSharpCode.SharpZipLib  \
74         ICSharpCode.SharpZipLib         \
75         Compat.ICSharpCode.SharpZipLib  \
76         ByteFX.Data                     \
77         Commons.Xml.Relaxng             \
78         Novell.Directory.Ldap           \
79         Mono.Security.Win32             \
80         System.DirectoryServices        \
81         System.Messaging                \
82         System.ServiceProcess           \
83         System.Drawing.Design           \
84         Mono.Http                       \
85         Microsoft.Vsa                   \
86         Mono.Cairo                      \
87         IBM.Data.DB2                    \
88         Microsoft.JScript               \
89         CustomMarshalers                \
90         OpenSystem.C                    \
91         Mono.Mozilla
92
93 default_dirs := FirebirdSql.Data.Firebird
94
95 net_2_0_dirs := \
96         System.Core                     \
97         System.Web.Extensions           \
98         Microsoft.Build.Framework       \
99         Microsoft.Build.Utilities       \
100         Microsoft.Build.Engine          \
101         Microsoft.Build.Tasks
102
103 net_2_1_dirs := \
104         corlib                  \
105         System                  \
106         System.Xml.Core \
107         System.Core             \
108
109 default_SUBDIRS := $(common_dirs) $(default_dirs)
110 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs)
111 net_2_1_SUBDIRS := $(net_2_1_dirs)
112
113 include ../build/rules.make
114
115 SUBDIRS = $(common_dirs) $(default_dirs) $(net_2_0_dirs) $(net_2_1_dirs)
116
117 # These libraries below are either unimplemented or don't compile, but
118 # I wrote makefiles for them.
119
120 BROKEN_SUBDIRS =
121
122 DIST_ONLY_SUBDIRS = \
123         $(BROKEN_SUBDIRS)
124
125 # No new makefiles for: System.Messaging, System.Web.Mobile,
126 # System.ServiceProcess
127
128 DISTFILES = \
129         ecma.pub                \
130         winfx.pub               \
131         mono.pub                \
132         msfinal.pub             \
133         mono.snk                \
134         LICENSE                 \
135         README                  \
136         doc/API-notes           \
137         doc/NUnitGuidelines     \
138         doc/TemplateTest.cs     \
139         notes/BitVecto32.txt    \
140         $(monolite_files)
141
142 .PHONY: all-local $(STD_TARGETS:=-local)
143 all-local $(STD_TARGETS:=-local):
144         @:
145
146 basic_files = mcs.exe mscorlib.dll System.dll System.Xml.dll
147 monolite_files = $(basic_files:%=lib/monolite/%)
148
149 lib/monolite:
150         $(MKINSTALLDIRS) $@
151
152 $(monolite_files): | lib/monolite
153 $(monolite_files): lib/monolite/%: lib/basic/%
154         cp -p $< $@
155
156 $(basic_files:%=lib/basic/%):
157         cd $(topdir) && $(MAKE) profile-do--basic--all
158
159 dist-default: $(monolite_files)
160 dist-local: dist-default