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