Pass first async test
[mono.git] / mcs / class / Makefile
index e32a0a8d0f9f38f8fc2a6c4f0ff5de31a6b1ad19..9ec65c2101f48f5ca043fb5e29e3b83687a72c53 100644 (file)
@@ -1,19 +1,20 @@
 thisdir = class
 
-bootstrap_dirs := \
-       corlib                                  \
-       Mono.CompilerServices.SymbolWriter      \
-       System                                  \
-       System.XML                              \
-       Mono.Security                           \
-       System.Security                         \
-       System.Configuration                    \
-       System
-
-
 # Note that Mono.Security and System.Security aren't listed.
 # We may have to add those if 'mcs' starts using them.
-basic_SUBDIRS := corlib System System.XML System Mono.Security Mono.CompilerServices.SymbolWriter System.Core
+basic_SUBDIRS := corlib System System.XML System Mono.Security System.Core 
+
+# resgen is corlib specific so we need to wait until corlib is build
+# and build it just a step before first dll needs it
+resgen_dir = ../tools/resgen
+
+build_SUBDIRS :=  \
+       corlib \
+       System \
+       System.XML \
+       System Mono.Security \
+       Mono.Posix \
+       System.Core
 
 net_1_1_java_SUBDIRS = \
        System.Xml                                      \
@@ -38,6 +39,7 @@ common_dirs := \
        System                          \
        System.XML                      \
        I18N                            \
+       $(resgen_dir)                   \
        System.Drawing                  \
        System.Transactions             \
        System.EnterpriseServices       \
@@ -62,9 +64,6 @@ common_dirs := \
        System.Design                   \
        PEAPI                           \
        Npgsql                          \
-       Compat.ICSharpCode.SharpZipLib  \
-       ICSharpCode.SharpZipLib         \
-       Compat.ICSharpCode.SharpZipLib  \
        Commons.Xml.Relaxng             \
        Novell.Directory.Ldap           \
        Mono.Security.Win32             \
@@ -76,6 +75,7 @@ common_dirs := \
        System.ServiceProcess           \
        System.Drawing.Design           \
        System.Design                   \
+       ICSharpCode.SharpZipLib         \
        Mono.Http                       \
        Mono.Cairo                      \
        IBM.Data.DB2                    \
@@ -115,31 +115,34 @@ net_2_0_dirs := \
        Mono.Tasklets                   \
        Mono.CSharp                     \
        Moonlight.Build.Tasks           \
-       WindowsBase                     \
-       System.Data.Services
+       System.Net
 
 net_2_0_only_dirs := \
        System.Web.Extensions_1.0       \
-       System.Web.Extensions.Design_1.0
+       System.Web.Extensions.Design_1.0        \
+       Compat.ICSharpCode.SharpZipLib  \
+       WindowsBase                     \
+       System.Data.Services.Client     \
+       System.Data.Services
 
-moonlight_dirs := \
+moonlight_raw_dirs := \
        corlib                  \
+       System                  \
        Mono.CompilerServices.SymbolWriter \
        System.Core             \
-       System                  \
        System.XML              \
        System.Net              \
        System.Xml.Linq \
-       System.Xml.Serialization        \
        System.Runtime.Serialization    \
        System.ServiceModel     \
-       System.ServiceModel.Web
+       System.ServiceModel.Web \
+       System.Xml.Serialization
 
-monotouch_dirs := \
+mobile_dirs := \
        corlib  \
+       System  \
        Mono.CompilerServices.SymbolWriter      \
        System.Core     \
-       System  \
        System.XML      \
        Mono.Security   \
        System  \
@@ -156,41 +159,45 @@ monotouch_dirs := \
        Mono.Cairo      \
        Mono.Data.Sqlite
 
-net_3_5_dirs := \
+net_3_5_only_dirs := \
        Microsoft.Build.Framework       \
        Microsoft.Build.Utilities       \
        Microsoft.Build.Engine          \
-       Microsoft.Build.Tasks           \
-       Moonlight.Build.Tasks           \
-       System.Web.Extensions.Design    \
-       System.Data.Services.Client
+       Microsoft.Build.Tasks
 
 net_4_0_dirs := \
        System.Dynamic          \
        System.Numerics         \
        Microsoft.CSharp        \
+       Microsoft.Build         \
        System.Windows.Forms.DataVisualization  \
        System.ComponentModel.Composition \
        System.Xaml \
+       WindowsBase \
        System.ServiceModel.Routing \
+       System.ServiceModel.Discovery \
        System.Runtime.Caching \
-       System.Runtime.DurableInstancing
-
-net_2_0_bootstrap_SUBDIRS := $(bootstrap_dirs)
-net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs)
-moonlight_bootstrap_SUBDIRS := corlib System Mono.CompilerServices.SymbolWriter System.Core
-moonlight_raw_SUBDIRS := $(moonlight_dirs)
-monotouch_bootstrap_SUBDIRS := corlib System Mono.CompilerServices.SymbolWriter System.Core
-monotouch_SUBDIRS := $(monotouch_dirs)
-net_3_5_SUBDIRS := $(net_3_5_dirs)
-net_4_0_bootstrap_SUBDIRS := $(bootstrap_dirs) Mono.Posix System.Core
-net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs)
+       System.Runtime.DurableInstancing \
+       Mono.Async \
+       Mono.CodeContracts \
+       Mono.Parallel \
+       Microsoft.Web.Infrastructure \
+       WebMatrix.Data \
+       System.Data.Services.Client     \
+       System.Data.Services
+
+net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) aot-compiler
+moonlight_raw_SUBDIRS := $(moonlight_raw_dirs)
+monodroid_SUBDIRS := $(mobile_dirs)
+monotouch_SUBDIRS := $(mobile_dirs)
+net_3_5_SUBDIRS := $(net_3_5_only_dirs)
+net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) aot-compiler
 
 include ../build/rules.make
 
-SUBDIRS = $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) $(moonlight_dirs) $(monotouch_dirs) $(net_3_5_dirs) $(net_4_0_dirs)
+SUBDIRS = $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) $(moonlight_raw_dirs) $(mobile_dirs) $(net_4_0_dirs)
 
-DIST_ONLY_SUBDIRS = dlr
+DIST_ONLY_SUBDIRS = dlr IKVM.Reflection aot-compiler
 
 # No new makefiles for: System.Messaging, System.Web.Mobile,
 # System.ServiceProcess
@@ -216,9 +223,8 @@ DISTFILES = \
 all-local $(STD_TARGETS:=-local):
        @:
 
-# What is this used for ?
-
-basic_files = gmcs.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll
+# Files needed to bootstrap C# compiler
+basic_files = basic.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll
 monolite_files = $(basic_files:%=lib/monolite/%)
 
 lib/monolite:
@@ -229,7 +235,7 @@ $(monolite_files): lib/monolite/%: lib/basic/%
        cp -p $< $@
 
 $(basic_files:%=lib/basic/%):
-       cd $(topdir) && $(MAKE) profile-do--basic--all
+       cd $(topdir) && $(MAKE) profile-do--basic--all NO_DIR_CHECK=1 SKIP_AOT=1
 
 dist-default: $(monolite_files)
 dist-local: dist-default