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