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