refactoring
[mono.git] / mcs / class / System.Core / Makefile
index 6acc12d632a323d1669774d9d27d7616af720ae7..e113d7668316774b6ab1b44909ca98fc62d4a647 100644 (file)
@@ -1,13 +1,19 @@
-thisdir = class/System.Core\r
-SUBDIRS = \r
-include ../../build/rules.make\r
-\r
-LIBRARY = System.Core.dll\r
-LIB_MCS_FLAGS = /r:$(corlib)\r
-NO_TEST = yes\r
+thisdir = class/System.Core
+SUBDIRS = 
+include ../../build/rules.make
 
-# This is a .NET 2.0 only assembly
-VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0, $(PROFILE))
+LIBRARY = System.Core.dll
+
+LIB_MCS_FLAGS = -unsafe -d:LIBC /r:$(corlib) /r:System
+
+ifeq (2.0, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
+endif
+
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
+
+# This is a .NET > 2.0 only assembly
+VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0 net_2_1_raw, $(PROFILE))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Core.dll
 NO_INSTALL = yes
@@ -15,4 +21,5 @@ NO_SIGN_ASSEMBLY = yes
 NO_TEST = yes
 endif
 
-include ../../build/library.make\r
+include ../../build/library.make
+