Rename the mobile_static profile to aot_only
[mono.git] / mcs / class / Mono.CSharp / Makefile
index 85b86e0f4669a7666d8dec465e61e42cdecc9180..6fab6abe3ae363eabf1d395eb5a507ae67c01218 100644 (file)
@@ -4,13 +4,25 @@ include ../../build/rules.make
 
 LIBRARY = Mono.CSharp.dll
 
-LIB_MCS_FLAGS = -r:System.Core.dll -r:System.Xml.dll -r:System.dll
+LIB_REFS = System.Core System.Xml System
+LIB_MCS_FLAGS =
 
-ifeq (monotouch, $(PROFILE))
+ifdef AOT_FRIENDLY_PROFILE
 LIB_MCS_FLAGS += -d:IOS_REFLECTION
 endif
 
-TEST_MCS_FLAGS = -r:System.Core.dll
+ifndef NO_THREAD_ABORT
+REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
+endif
+
+TEST_MCS_FLAGS =
+TEST_LIB_REFS = System.Core
+
+LIB_MCS_FLAGS += $(REFERENCE_SOURCES_FLAGS)
 
 include ../../build/library.make
 
+$(topdir)/mcs/cs-parser.cs:
+       $(MAKE) -C $(topdir)/mcs cs-parser.cs
+
+$(the_lib): $(topdir)/mcs/cs-parser.cs