Merge branch 'master' into msbuilddll2
[mono.git] / mcs / class / Makefile
1 thisdir = class
2
3 # Note that Mono.Security and System.Security aren't listed.
4 # We may have to add those if 'mcs' starts using them.
5 basic_SUBDIRS := corlib System System.XML System Mono.Security System.Core 
6
7 # resgen is corlib specific so we need to wait until corlib is build
8 # and build it just a step before first dll needs it
9 resgen_dir = ../tools/resgen
10
11 build_SUBDIRS :=  \
12         corlib \
13         System \
14         System.XML \
15         System Mono.Security \
16         Mono.Posix \
17         System.Core
18
19 net_1_1_java_SUBDIRS = \
20         System.Xml                                      \
21         System.Data                                     \
22         System.Drawing                                  \
23         Novell.Directory.Ldap                           \
24         System.DirectoryServices                        \
25         System.Runtime.Serialization.Formatters.Soap    \
26         System.Runtime.Remoting
27
28 common_dirs := \
29         corlib                          \
30         System                          \
31         System.XML                      \
32         Mono.CompilerServices.SymbolWriter \
33         Mono.Posix                      \
34         System.Core                     \
35         Mono.Security                   \
36         System                          \
37         System.Security                 \
38         System.Configuration            \
39         System                          \
40         System.XML                      \
41         I18N                            \
42         $(resgen_dir)                   \
43         System.Drawing                  \
44         System.Transactions             \
45         System.EnterpriseServices       \
46         Mono.Data.Tds                   \
47         System.Data                     \
48         Accessibility                   \
49         Mono.WebBrowser                 \
50         System.Runtime.Serialization.Formatters.Soap \
51         Managed.Windows.Forms           \
52         Mono.Data.Sqlite                \
53         System.Web.ApplicationServices  \
54         System.Web                      \
55         Mono.Web                        \
56         System.Web.Services             \
57         System.Web                      \
58         System.Runtime.Remoting         \
59         System.Configuration.Install    \
60         System.Management               \
61         System.Data.OracleClient        \
62         Microsoft.VisualC               \
63         Cscompmgd                       \
64         System.Design                   \
65         PEAPI                           \
66         Npgsql                          \
67         Commons.Xml.Relaxng             \
68         Novell.Directory.Ldap           \
69         Mono.Security.Win32             \
70         System.DirectoryServices        \
71         System.DirectoryServices.Protocols      \
72         RabbitMQ.Client                 \
73         Mono.Messaging                  \
74         System.Messaging                \
75         Mono.Messaging.RabbitMQ         \
76         System.ServiceProcess           \
77         System.Drawing.Design           \
78         System.Design                   \
79         ICSharpCode.SharpZipLib         \
80         Mono.Http                       \
81         Mono.Cairo                      \
82         IBM.Data.DB2                    \
83         CustomMarshalers                \
84         OpenSystem.C                    \
85         Mono.Cecil                      \
86         Mono.Cecil.Mdb                  \
87         Mono.Debugger.Soft              \
88         SystemWebTestShim
89
90 net_2_0_dirs := \
91         Microsoft.Build.Framework       \
92         Microsoft.Build.Utilities       \
93         Microsoft.Build.Engine          \
94         Mono.XBuild.Tasks                       \
95         Microsoft.Build.Tasks           \
96         System.Xml.Linq                 \
97         System.Runtime.Serialization    \
98         System.Data.DataSetExtensions   \
99         System.Data.Linq                \
100         System.Web                      \
101         System.Web.Abstractions         \
102         System.Web.Routing              \
103         System.IdentityModel            \
104         System.IdentityModel.Selectors  \
105         System.ServiceModel             \
106         System.Web.Extensions           \
107         System.Web.Extensions.Design    \
108         System.ComponentModel.DataAnnotations   \
109         System.Web.DynamicData          \
110         System.Web.Mvc2                 \
111         Mono.C5                         \
112         Mono.Management                 \
113         Mono.Options                    \
114         Mono.Simd                       \
115         Mono.Tasklets                   \
116         System.Dynamic                  \
117         Mono.CSharp                     \
118         Moonlight.Build.Tasks           \
119         System.Net                              \
120         System.Json
121
122 net_2_0_only_dirs := \
123         System.Web.Extensions_1.0       \
124         System.Web.Extensions.Design_1.0        \
125         Compat.ICSharpCode.SharpZipLib  \
126         WindowsBase                     \
127         System.ServiceModel.Web \
128         System.Data.Services.Client     \
129         System.Data.Services            \
130         System.Web.Mvc \
131
132 pcl_facade_dirs := Facades
133
134 mobile_dirs := \
135         corlib  \
136         System  \
137         System.Core     \
138         System.XML      \
139         Mono.Security   \
140         System  \
141         I18N            \
142         System.Xml.Linq \
143         System.Runtime.Serialization    \
144         System.ServiceModel     \
145         System.ServiceModel.Web \
146         System.Json     \
147         System.Web.Services     \
148         Mono.Data.Tds   \
149         System.Transactions     \
150         System.Data     \
151         Mono.Cairo      \
152         Mono.Data.Sqlite        \
153         System.Numerics \
154         System.Data.Services.Client \
155         System.IO.Compression \
156         System.IO.Compression.FileSystem \
157         System.ComponentModel.DataAnnotations \
158         System.ComponentModel.Composition.4.5 \
159         System.Net \
160         System.Windows \
161         System.Xml.Serialization \
162         $(pcl_facade_dirs)
163
164 monodroid_dirs := \
165         Mono.CompilerServices.SymbolWriter      \
166         Mono.CSharp     \
167         Microsoft.CSharp \
168         System.Net.Http
169
170 monotouch_runtime_dirs := \
171         corlib
172
173 net_3_5_only_dirs := \
174         Microsoft.Build.Framework       \
175         Microsoft.Build.Utilities       \
176         Microsoft.Build.Engine          \
177         Mono.XBuild.Tasks                       \
178         Microsoft.Build.Tasks
179
180 net_4_0_dirs := \
181         System.Numerics         \
182         Microsoft.CSharp        \
183         Microsoft.Build         \
184         System.Windows.Forms.DataVisualization  \
185         System.Xaml \
186         WindowsBase \
187         System.ServiceModel.Activation \
188         System.ServiceModel \
189         System.ServiceModel.Routing \
190         System.ServiceModel.Discovery \
191         System.Runtime.Caching \
192         System.Runtime.DurableInstancing \
193         Mono.Parallel \
194         System.Reactive.Interfaces \
195         System.Reactive.Core \
196         System.Reactive.Linq \
197         System.Reactive.PlatformServices \
198         System.Reactive.Providers \
199         System.Reactive.Runtime.Remoting \
200         System.Reactive.Windows.Forms \
201         System.Reactive.Windows.Threading \
202         System.Reactive.Observable.Aliases \
203         System.Reactive.Experimental \
204         System.Reactive.Debugger \
205         Microsoft.Web.Infrastructure \
206         WebMatrix.Data \
207         System.ServiceModel.Web \
208         System.Data.Services.Client     \
209         System.Data.Services \
210         System.Json.Microsoft \
211         monodoc
212         
213 net_4_0_only_dirs := \
214         System.ComponentModel.Composition
215
216 net_4_5_dirs := \
217         System.Threading.Tasks.Dataflow \
218         System.ComponentModel.Composition.4.5 \
219         System.Net.Http \
220         System.Net.Http.WebRequest \
221         System.Web.Razor \
222         System.Web.WebPages.Deployment \
223         System.Web.WebPages \
224         System.Web.WebPages.Razor \
225         System.Web.Mvc3 \
226         System.Net.Http.Formatting \
227         System.Web.Http \
228         System.Web.Http.SelfHost \
229         System.Web.Http.WebHost \
230         EntityFramework \
231         EntityFramework.SqlServer       \
232         Mono.CodeContracts \
233         System.IO.Compression \
234         System.IO.Compression.FileSystem \
235         System.Windows \
236         System.Xml.Serialization \
237         $(pcl_facade_dirs)
238         
239 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) aot-compiler
240 monodroid_SUBDIRS := $(mobile_dirs) $(monodroid_dirs)
241 monotouch_SUBDIRS := $(mobile_dirs)
242 monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
243 mobile_static_SUBDIRS := $(mobile_dirs)
244 mobile_SUBDIRS := $(mobile_dirs)
245 net_3_5_SUBDIRS := $(net_3_5_only_dirs)
246 net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs)
247 net_4_5_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_5_dirs) aot-compiler
248
249 include ../build/rules.make
250
251 SUBDIRS = $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) $(net_3_5_only_dirs) $(mobile_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs) $(net_4_5_dirs)
252
253 DIST_ONLY_SUBDIRS = dlr aot-compiler
254
255 # No new makefiles for: System.Messaging, System.Web.Mobile,
256 # System.ServiceProcess
257
258 DISTFILES = \
259         ecma.pub                \
260         winfx.pub               \
261         winfx3.pub              \
262         mono.pub                \
263         msfinal.pub             \
264         silverlight.pub         \
265         reactive.pub            \
266         mono.snk                \
267         LICENSE                 \
268         README                  \
269         doc/API-notes           \
270         doc/NUnitGuidelines     \
271         doc/TemplateTest.cs     \
272         notes/BitVecto32.txt    \
273         MicrosoftAjaxLibrary/License.htm        \
274         $(monolite_files)
275
276 .PHONY: all-local $(STD_TARGETS:=-local)
277 all-local $(STD_TARGETS:=-local):
278         @:
279
280 # Files needed to bootstrap C# compiler
281 basic_files = basic.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll
282 monolite_files = $(basic_files:%=lib/monolite/%)
283
284 lib/monolite:
285         $(MKINSTALLDIRS) $@
286
287 $(monolite_files): | lib/monolite
288 $(monolite_files): lib/monolite/%: lib/basic/%
289         cp -p $< $@
290
291 $(basic_files:%=lib/basic/%):
292         cd $(topdir) && $(MAKE) profile-do--basic--all NO_DIR_CHECK=1 SKIP_AOT=1
293
294 dist-default: $(monolite_files)
295 dist-local: dist-default
296
297 csproj-local:
298