Merge pull request #823 from DavidKarlas/master
[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         Microsoft.Build.Tasks           \
95         System.Xml.Linq                 \
96         System.Runtime.Serialization    \
97         System.Data.DataSetExtensions   \
98         System.Data.Linq                \
99         System.Web                      \
100         System.Web.Abstractions         \
101         System.Web.Routing              \
102         System.IdentityModel            \
103         System.IdentityModel.Selectors  \
104         System.ServiceModel             \
105         System.Web.Extensions           \
106         System.Web.Extensions.Design    \
107         System.ComponentModel.DataAnnotations   \
108         System.Web.DynamicData          \
109         System.Web.Mvc2                 \
110         Mono.C5                         \
111         Mono.Management                 \
112         Mono.Options                    \
113         Mono.Simd                       \
114         Mono.Tasklets                   \
115         System.Dynamic                  \
116         Mono.CSharp                     \
117         Moonlight.Build.Tasks           \
118         System.Net                              \
119         System.Json
120
121 net_2_0_only_dirs := \
122         System.Web.Extensions_1.0       \
123         System.Web.Extensions.Design_1.0        \
124         Compat.ICSharpCode.SharpZipLib  \
125         WindowsBase                     \
126         System.ServiceModel.Web \
127         System.Data.Services.Client     \
128         System.Data.Services            \
129         System.Web.Mvc \
130
131 pcl_facade_dirs := Facades
132
133 mobile_dirs := \
134         corlib  \
135         System  \
136         System.Core     \
137         System.XML      \
138         Mono.Security   \
139         System  \
140         I18N            \
141         System.Xml.Linq \
142         System.Runtime.Serialization    \
143         System.ServiceModel     \
144         System.ServiceModel.Web \
145         System.Json     \
146         System.Web.Services     \
147         Mono.Data.Tds   \
148         System.Transactions     \
149         System.Data     \
150         Mono.Cairo      \
151         Mono.Data.Sqlite        \
152         System.Numerics \
153         System.Data.Services.Client \
154         System.IO.Compression \
155         System.IO.Compression.FileSystem \
156         System.ComponentModel.DataAnnotations \
157         System.ComponentModel.Composition.4.5 \
158         System.Net \
159         System.Windows \
160         System.Xml.Serialization \
161         $(pcl_facade_dirs)
162
163 monodroid_dirs := \
164         Mono.CompilerServices.SymbolWriter      \
165         Mono.CSharp     \
166         Microsoft.CSharp \
167         System.Net.Http
168
169 monotouch_runtime_dirs := \
170         corlib
171
172 net_3_5_only_dirs := \
173         Microsoft.Build.Framework       \
174         Microsoft.Build.Utilities       \
175         Microsoft.Build.Engine          \
176         Microsoft.Build.Tasks
177
178 net_4_0_dirs := \
179         System.Numerics         \
180         Microsoft.CSharp        \
181         Microsoft.Build         \
182         System.Windows.Forms.DataVisualization  \
183         System.Xaml \
184         WindowsBase \
185         System.ServiceModel.Activation \
186         System.ServiceModel \
187         System.ServiceModel.Routing \
188         System.ServiceModel.Discovery \
189         System.Runtime.Caching \
190         System.Runtime.DurableInstancing \
191         Mono.Parallel \
192         System.Reactive.Interfaces \
193         System.Reactive.Core \
194         System.Reactive.Linq \
195         System.Reactive.PlatformServices \
196         System.Reactive.Providers \
197         System.Reactive.Runtime.Remoting \
198         System.Reactive.Windows.Forms \
199         System.Reactive.Windows.Threading \
200         System.Reactive.Experimental \
201         System.Reactive.Debugger \
202         Microsoft.Web.Infrastructure \
203         WebMatrix.Data \
204         System.ServiceModel.Web \
205         System.Data.Services.Client     \
206         System.Data.Services \
207         System.Json.Microsoft \
208         monodoc
209         
210 net_4_0_only_dirs := \
211         System.ComponentModel.Composition
212
213 net_4_5_dirs := \
214         System.Threading.Tasks.Dataflow \
215         System.ComponentModel.Composition.4.5 \
216         System.Net.Http \
217         System.Net.Http.WebRequest \
218         System.Web.Razor \
219         System.Web.WebPages.Deployment \
220         System.Web.WebPages \
221         System.Web.WebPages.Razor \
222         System.Web.Mvc3 \
223         System.Net.Http.Formatting \
224         System.Web.Http \
225         System.Web.Http.SelfHost \
226         System.Web.Http.WebHost \
227         EntityFramework \
228         EntityFramework.SqlServer       \
229         Mono.CodeContracts \
230         System.IO.Compression \
231         System.IO.Compression.FileSystem \
232         System.Windows \
233         System.Xml.Serialization \
234         $(pcl_facade_dirs)
235         
236 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) aot-compiler
237 monodroid_SUBDIRS := $(mobile_dirs) $(monodroid_dirs)
238 monotouch_SUBDIRS := $(mobile_dirs)
239 monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
240 mobile_static_SUBDIRS := $(mobile_dirs)
241 mobile_SUBDIRS := $(mobile_dirs)
242 net_3_5_SUBDIRS := $(net_3_5_only_dirs)
243 net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs)
244 net_4_5_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_5_dirs) aot-compiler
245
246 include ../build/rules.make
247
248 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)
249
250 DIST_ONLY_SUBDIRS = dlr aot-compiler
251
252 # No new makefiles for: System.Messaging, System.Web.Mobile,
253 # System.ServiceProcess
254
255 DISTFILES = \
256         ecma.pub                \
257         winfx.pub               \
258         winfx3.pub              \
259         mono.pub                \
260         msfinal.pub             \
261         silverlight.pub         \
262         reactive.pub            \
263         mono.snk                \
264         LICENSE                 \
265         README                  \
266         doc/API-notes           \
267         doc/NUnitGuidelines     \
268         doc/TemplateTest.cs     \
269         notes/BitVecto32.txt    \
270         MicrosoftAjaxLibrary/License.htm        \
271         $(monolite_files)
272
273 .PHONY: all-local $(STD_TARGETS:=-local)
274 all-local $(STD_TARGETS:=-local):
275         @:
276
277 # Files needed to bootstrap C# compiler
278 basic_files = basic.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll
279 monolite_files = $(basic_files:%=lib/monolite/%)
280
281 lib/monolite:
282         $(MKINSTALLDIRS) $@
283
284 $(monolite_files): | lib/monolite
285 $(monolite_files): lib/monolite/%: lib/basic/%
286         cp -p $< $@
287
288 $(basic_files:%=lib/basic/%):
289         cd $(topdir) && $(MAKE) profile-do--basic--all NO_DIR_CHECK=1 SKIP_AOT=1
290
291 dist-default: $(monolite_files)
292 dist-local: dist-default
293
294 csproj-local:
295