6c883f8579685ab24608dcdf287482855722c50b
[mono.git] / mcs / class / Makefile
1 thisdir = class
2
3 basic_SUBDIRS := corlib Mono.Security System System.XML System.Core
4
5 pcl_facade_dirs := Facades
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         Mono.Security \
14         System \
15         System.XML \
16         Mono.Posix \
17         System.Core \
18         Mono.Cecil \
19         Mono.Cecil.Mdb \
20         System.ComponentModel.Composition.4.5 \
21         System.Numerics \
22         System.Xml.Linq \
23         $(pcl_facade_dirs)
24
25 mobile_common_dirs := \
26         corlib  \
27         Mono.Security \
28         System  \
29         System.Core     \
30         System.Security \
31         System.XML      \
32         I18N            \
33         System.ServiceModel.Internals   \
34         System.Runtime.Serialization    \
35         System.Xml.Linq \
36         System.IdentityModel            \
37         System.ServiceModel     \
38         System.ServiceModel.Web \
39         System.Json     \
40         System.Web.Services     \
41         Mono.Data.Tds   \
42         System.Transactions     \
43         System.Numerics \
44         System.Numerics.Vectors         \
45         System.Data     \
46         Mono.Data.Sqlite        \
47         System.Data.Services.Client \
48         System.IO.Compression \
49         System.IO.Compression.FileSystem \
50         System.ComponentModel.DataAnnotations \
51         System.ComponentModel.Composition.4.5 \
52         System.Net \
53         System.Net.Http \
54         System.Windows \
55         System.Xml.Serialization \
56         Mono.CSharp     \
57         Microsoft.CSharp \
58         System.Runtime.InteropServices.RuntimeInformation       \
59         System.Reflection.DispatchProxy \
60         System.Xml.XPath.XmlDocument \
61         System.Reflection.Context       \
62         System.Net.Http.WinHttpHandler
63
64 aot_only_dirs := \
65         $(mobile_common_dirs)   \
66         Mono.Dynamic.Interpreter        \
67         PEAPI   \
68         Mono.CompilerServices.SymbolWriter      \
69         Mono.Simd                       \
70         $(pcl_facade_dirs)
71
72 aot_hybrid_dirs := \
73         $(mobile_common_dirs)   \
74         PEAPI   \
75         Mono.CompilerServices.SymbolWriter      \
76         Mono.Simd                       \
77         $(pcl_facade_dirs)
78
79 xammac_dirs := \
80         $(mobile_common_dirs)   \
81         Mono.CompilerServices.SymbolWriter      \
82         $(pcl_facade_dirs)
83
84 monodroid_dirs := \
85         $(mobile_common_dirs)   \
86         Mono.CompilerServices.SymbolWriter      \
87         Mono.Btls.Interface     \
88         $(pcl_facade_dirs)
89
90 monotouch_dirs := \
91         $(aot_only_dirs)
92
93 monotouch_watch_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs))
94 monotouch_tv_dirs   := $(monotouch_dirs)
95
96 monotouch_runtime_dirs := \
97         corlib \
98         Mono.Security \
99         System \
100         System.Core \
101         System.XML \
102         Mono.CSharp
103
104 monotouch_watch_runtime_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_runtime_dirs))
105 monotouch_tv_runtime_dirs := $(monotouch_runtime_dirs)
106
107 xammac_4_5_dirs := \
108         corlib  \
109         Mono.Security \
110         System  \
111         Mono.Posix                      \
112         System.Core     \
113         System.Security                 \
114         System.XML      \
115         I18N            \
116         System.ServiceModel.Internals   \
117         SMDiagnostics   \
118         System.Numerics \
119         System.Numerics.Vectors         \
120         Mono.Data.Tds   \
121         System.Transactions     \
122         System.EnterpriseServices       \
123         System.Data     \
124         System.Runtime.Serialization    \
125         System.Xml.Linq \
126         Mono.Data.Sqlite        \
127         System.Runtime.Serialization.Formatters.Soap \
128         System.ComponentModel.DataAnnotations \
129         System.IdentityModel            \
130         System.IdentityModel.Selectors  \
131         Mono.Messaging                  \
132         System.Configuration.Install    \
133         System.Messaging                \
134         System.Web.Services \
135         System.ServiceModel     \
136         System.ServiceModel.Web \
137         System.Json     \
138         System.Data.Services.Client \
139         System.IO.Compression \
140         System.IO.Compression.FileSystem \
141         System.ComponentModel.Composition.4.5 \
142         System.Net \
143         System.Windows \
144         System.Xml.Serialization \
145         Mono.CSharp     \
146         Microsoft.CSharp \
147         Mono.CompilerServices.SymbolWriter      \
148         System.Data.Linq                \
149         System.Net.Http \
150         System.Net.Http.WebRequest \
151         System.Runtime.InteropServices.RuntimeInformation \
152         System.Reflection.Context       \
153         System.Net.Http.WinHttpHandler  \
154         $(pcl_facade_dirs)
155
156 net_4_x_dirs := \
157         corlib                          \
158         Mono.Security \
159         System                          \
160         System.XML                      \
161         Mono.CompilerServices.SymbolWriter \
162         Mono.Posix                      \
163         System.Core                     \
164         System.Security                 \
165         System.Configuration    \
166         $(resgen_dir)                   \
167         System.IO.Compression           \
168         System.IO.Compression.FileSystem \
169         System.Drawing                  \
170         System.Transactions             \
171         System.EnterpriseServices       \
172         Mono.Data.Tds                   \
173         System.Numerics         \
174         System.Numerics.Vectors         \
175         System.Data                     \
176         System.ComponentModel.DataAnnotations   \
177         Accessibility                   \
178         Mono.WebBrowser                 \
179         System.Runtime.Serialization.Formatters.Soap \
180         System.Windows.Forms            \
181         Mono.Data.Sqlite                \
182         System.Web.ApplicationServices  \
183         Novell.Directory.Ldap           \
184         System.DirectoryServices        \
185         System.Web                      \
186         System.Web.Services             \
187         System.Design                   \
188         System.Runtime.Remoting         \
189         System.Configuration.Install    \
190         System.Management               \
191         System.Data.OracleClient        \
192         Cscompmgd                       \
193         Commons.Xml.Relaxng             \
194         Mono.Messaging                  \
195         System.Messaging                \
196         System.ServiceProcess           \
197         System.Drawing.Design           \
198         ICSharpCode.SharpZipLib         \
199         IBM.Data.DB2                    \
200         CustomMarshalers                \
201         SystemWebTestShim                       \
202         System.ServiceModel.Internals   \
203         SMDiagnostics   \
204         System.Runtime.Serialization    \
205         System.Xml.Linq                 \
206         System.Data.Linq                \
207         System.Web.Abstractions         \
208         System.Web.Routing              \
209         System.Runtime.DurableInstancing \
210         System.IdentityModel            \
211         System.IdentityModel.Selectors  \
212         System.ServiceModel             \
213         System.Web.Extensions           \
214         System.Web.Extensions.Design    \
215         System.Web.DynamicData          \
216         Mono.CSharp                     \
217         System.Net                      \
218         System.Json             \
219         Microsoft.CSharp        \
220         System.Xaml \
221         WindowsBase \
222         System.ServiceModel.Activation \
223         System.ServiceModel.Routing \
224         System.ServiceModel.Discovery \
225         System.Runtime.Caching \
226         Microsoft.Web.Infrastructure \
227         System.ServiceModel.Web \
228         System.Net.Http \
229         System.Net.Http.WebRequest \
230         System.Web.Razor \
231         System.Web.WebPages.Deployment \
232         System.Web.WebPages \
233         System.Web.WebPages.Razor \
234         System.Web.Mvc3 \
235         System.Net.Http.Formatting \
236         System.Web.Http \
237         System.Web.Http.SelfHost \
238         System.Web.Http.WebHost \
239         System.Runtime.InteropServices.RuntimeInformation
240
241 # These are the subdirs which depends on libs in net_4_x_dirs
242 # or have proper dependencies between each other
243 net_4_x_parallel_dirs := \
244         PEAPI                           \
245         I18N                            \
246         Mono.Btls.Interface             \
247         Mono.Http                       \
248         Mono.Cairo                      \
249         Mono.Cecil                      \
250         Mono.Cecil.Mdb                  \
251         Mono.Debugger.Soft              \
252         Mono.C5                         \
253         Mono.Management                 \
254         Mono.Options                    \
255         Mono.Simd                       \
256         Mono.Tasklets                   \
257         Mono.CodeContracts \
258         Mono.Parallel \
259         Mono.Security.Win32             \
260         Mono.Messaging.RabbitMQ         \
261         System.Dynamic                  \
262         System.Windows.Forms.DataVisualization  \
263         System.Reactive.Interfaces \
264         System.Reactive.Core \
265         System.Reactive.Linq \
266         System.Reactive.PlatformServices \
267         System.Reactive.Providers \
268         System.Reactive.Runtime.Remoting \
269         System.Reactive.Windows.Forms \
270         System.Reactive.Windows.Threading \
271         System.Reactive.Observable.Aliases \
272         System.Reactive.Experimental \
273         System.Reactive.Debugger \
274         System.Data.Services.Client     \
275         System.Data.Services \
276         System.Data.Entity \
277         System.Data.DataSetExtensions   \
278         System.Json.Microsoft \
279         System.Threading.Tasks.Dataflow \
280         System.ComponentModel.Composition.4.5 \
281         System.Windows \
282         System.Xml.Serialization \
283         System.DirectoryServices.Protocols      \
284         RabbitMQ.Client                 \
285         Microsoft.VisualC               \
286         WebMatrix.Data \
287         monodoc \
288         System.Deployment \
289         System.Web.Mobile \
290         System.Web.RegularExpressions \
291         System.Workflow.Activities \
292         System.Workflow.ComponentModel \
293         System.Workflow.Runtime \
294         System.Reflection.Context \
295         legacy/Mono.Cecil \
296         $(pcl_facade_dirs)
297
298 xbuild_2_0_dirs := \
299         Microsoft.Build.Framework       \
300         Microsoft.Build.Utilities       \
301         Microsoft.Build.Engine          \
302         Mono.XBuild.Tasks               \
303         Microsoft.Build.Tasks
304
305 xbuild_4_0_dirs := \
306         $(xbuild_2_0_dirs)      \
307         Microsoft.Build
308
309 monodroid_SUBDIRS := $(monodroid_dirs)
310 monotouch_SUBDIRS := $(monotouch_dirs)
311 monotouch_watch_SUBDIRS := $(monotouch_watch_dirs)
312 monotouch_tv_SUBDIRS    := $(monotouch_tv_dirs)
313 monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
314 monotouch_watch_runtime_SUBDIRS := $(monotouch_watch_runtime_dirs)
315 monotouch_tv_runtime_SUBDIRS := $(monotouch_tv_runtime_dirs)
316 aot_only_SUBDIRS := $(aot_only_dirs)
317 aot_hybrid_SUBDIRS := $(aot_hybrid_dirs)
318 xammac_SUBDIRS := $(xammac_dirs)
319 xammac_net_4_5_SUBDIRS := $(xammac_4_5_dirs)
320 binary_reference_assemblies_SUBDIRS := reference-assemblies
321 net_4_x_SUBDIRS := $(net_4_x_dirs) $(xbuild_4_0_dirs)
322 net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs) aot-compiler
323 xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
324 xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
325
326 include ../build/rules.make
327
328 SUBDIRS = $(aot_only_dirs) $(aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS)
329
330 DIST_ONLY_SUBDIRS = dlr aot-compiler reference-assemblies $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
331
332 # No new makefiles for: System.Messaging, System.Web.Mobile,
333 # System.ServiceProcess
334
335 DISTFILES = \
336         ecma.pub                \
337         winfx.pub               \
338         winfx3.pub              \
339         mono.pub                \
340         msfinal.pub             \
341         silverlight.pub         \
342         reactive.pub            \
343         mono.snk                \
344         LICENSE                 \
345         README                  \
346         doc/API-notes           \
347         doc/NUnitGuidelines     \
348         doc/TemplateTest.cs     \
349         notes/BitVecto32.txt    \
350         MicrosoftAjaxLibrary/License.htm        \
351         test-helpers/NetworkHelpers.cs  \
352         test-helpers/SocketResponder.cs \
353         lib/$(monolite_dir)/basic.exe   \
354         $(monolite_files)
355
356 .PHONY: all-local $(STD_TARGETS:=-local)
357 all-local $(STD_TARGETS:=-local):
358         @:
359
360 all-local-aot:
361
362 monolite_dir := monolite
363
364 # Files needed to bootstrap C# compiler
365 build_files = mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
366         System.Numerics.dll System.Xml.Linq.dll \
367         Facades/System.Collections.Concurrent.dll Facades/System.Linq.dll Facades/System.Runtime.dll Facades/System.Collections.dll     \
368         Facades/System.Reflection.Extensions.dll Facades/System.Text.Encoding.Extensions.dll Facades/System.Diagnostics.Debug.dll \
369         Facades/System.Reflection.Primitives.dll Facades/System.Text.Encoding.dll Facades/System.Diagnostics.Tools.dll Facades/System.Reflection.dll \
370         Facades/System.Threading.Tasks.Parallel.dll Facades/System.Dynamic.Runtime.dll Facades/System.Resources.ResourceManager.dll \
371         Facades/System.Threading.Tasks.dll Facades/System.Globalization.dll Facades/System.Runtime.Extensions.dll Facades/System.Threading.dll \
372         Facades/System.IO.dll Facades/System.Runtime.InteropServices.dll Facades/System.Xml.ReaderWriter.dll Facades/System.Linq.Expressions.dll \
373         Facades/System.Runtime.Numerics.dll Facades/System.Xml.XDocument.dll
374
375 monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
376
377 lib/$(monolite_dir):
378 lib/$(monolite_dir)/Facades:
379         $(MKINSTALLDIRS) $@
380
381 $(monolite_files): | lib/$(monolite_dir)
382 $(monolite_files): | lib/$(monolite_dir)/Facades
383 $(monolite_files): lib/$(monolite_dir)/%: lib/build/%
384         cp -p $< $@
385
386 lib/$(monolite_dir)/basic.exe:
387         cp -p lib/basic/basic.exe lib/$(monolite_dir)
388
389 $(build_files:%=lib/build/%):
390         cd $(topdir) && $(MAKE) profile-do--build--all NO_DIR_CHECK=1 SKIP_AOT=1
391
392 dist-monolite: $(monolite_files) lib/$(monolite_dir)/basic.exe
393
394 dist-default: dist-monolite
395
396 dist-local: dist-default
397
398 csproj-local:
399
400 do-clean:
401         $(RM) -rf $(topdir)/class/lib/$(PROFILE)