Fix last commit
[mono.git] / mcs / gmcs / Makefile
index 72f03b5626fa2d375f017550f2710511e3f436f9..ea5a1eb8826d647fb4a4293f5fc0de3cb45f4665 100644 (file)
@@ -5,6 +5,8 @@ include ../build/rules.make
 #uncomment to enable some debug stuff
 #DEBUG_FLAGS=/define:MCS_DEBUG
 
+LOCAL_MCS_FLAGS += -d:GMCS_SOURCE
+
 BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0_bootstrap/mcs.exe $(DEBUG_FLAGS)
 
 BUILT_SOURCES = cs-parser.cs
@@ -42,16 +44,16 @@ $(bootstrap_libfiles): bootstrap-libs
 bootstrap-libs:
        cd .. && $(MAKE) PROFILE=net_2_0_bootstrap all
 
-gmcs.exe: $(bootstrap_libfiles)
+$(PROGRAM): $(bootstrap_libfiles)
 
 gmcs2.exe: $(PROGRAM)
-       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(PROGRAM) -2 /target:exe /debug /out:$@ $^ $(DEBUG_FLAGS) 
+       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) $(RUNTIME_FLAGS) $(PROGRAM) /target:exe /debug /out:$@ -d:GMCS_SOURCE  -d:NET_1_1 -d:NET_2_0 cs-parser.cs  @gmcs.exe.sources
 
 gmcs3.exe: gmcs2.exe
-       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) $(RUNTIME_FLAGS) ./gmcs2.exe $(USE_MCS_FLAGS) $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
+       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) $(RUNTIME_FLAGS) ./gmcs2.exe /target:exe /debug /out:$@ -d:GMCS_SOURCE  -d:NET_1_1 -d:NET_2_0 cs-parser.cs  @gmcs.exe.sources
 
 gmcs4.exe: gmcs3.exe
-       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) $(RUNTIME_FLAGS) ./gmcs3.exe $(USE_MCS_FLAGS) $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
+       MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) $(RUNTIME_FLAGS) ./gmcs3.exe /target:exe /debug /out:$@ -d:GMCS_SOURCE  -d:NET_1_1 -d:NET_2_0 cs-parser.cs  @gmcs.exe.sources
 
 
 # Testing targets
@@ -94,3 +96,12 @@ profile : gmcs2.exe
        -rm -f gmcs3.exe
        make gmcs3.exe RUNTIME_FLAGS='--profile=$(PROFILER)'
 
+typetest:
+       mono gmcs.exe --typetest ../mcs/lambda.test
+
+l:
+       mono --debug gmcs.exe -langversion:linq l1.cs
+
+qh:
+       make cs-parser.cs
+       MONO_PATH="../class/lib/net_2_0_bootstrap:$MONO_PATH" /cvs/mono/runtime/mono-wrapper  ../class/lib/net_2_0_bootstrap/mcs.exe  /codepage:65001 -d:GMCS_SOURCE  -d:NET_1_1 -d:NET_2_0 -debug -target:exe -out:gmcs.exe cs-parser.cs  @gmcs.exe.sources