2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / mcs / Makefile
index 5efda676b43605a3926ceeac1d0b1e43030e1f80..63f2f512e584adbeae93a4a560cc4d226e9adebb 100644 (file)
@@ -9,16 +9,15 @@ EXTRA_DISTFILES = \
        *cs-parser.jay          \
        *.sources               \
        generic.cs              \
-       linq.cs                 \
        NOTES                   \
-       TODO
+       TODO                    \
+       gmcs.exe.config
 
 GMCS_PROFILE := $(filter net_2_0_bootstrap net_2_0 net_2_1, $(PROFILE))
 
 ifdef GMCS_PROFILE
-       BUILT_SOURCES = gcs-parser.cs
        LOCAL_MCS_FLAGS += -d:GMCS_SOURCE
-       
+
        ifeq (net_2_1, $(PROFILE))
                INTERNAL_SMCS = $(INTERNAL_GMCS)
                LOCAL_MCS_FLAGS += -nowarn:618 -noconfig -r:mscorlib -r:System.dll
@@ -28,10 +27,11 @@ ifdef GMCS_PROFILE
                PROGRAM = $(topdir)/class/lib/$(PROFILE)/gmcs.exe
        endif   
 else
-       BUILT_SOURCES = cs-parser.cs
        PROGRAM = $(topdir)/class/lib/$(PROFILE)/mcs.exe
 endif
 
+BUILT_SOURCES = cs-parser.cs
+
 PROGRAM_COMPILE = $(BOOT_COMPILE)
 
 CLEAN_FILES += y.output
@@ -56,10 +56,12 @@ $(progdir)/.stamp:
        $(MKINSTALLDIRS) $(@D)
        touch $@
 
-$(PROGRAM): $(topdir)/class/lib/default/mcs.exe $(progdir)/.stamp
+$(PROGRAM) $(PROGRAM).config: $(progdir)/.stamp
+
+$(PROGRAM): $(topdir)/class/lib/default/mcs.exe
        cp $< $@
 
-$(PROGRAM).config: $(progdir)/.stamp
+$(PROGRAM).config: gmcs.exe.config
        cp $< $@
 
 else
@@ -131,3 +133,6 @@ PROFILER=default
 
 profile : $(PROGRAM)
        $(RUNTIME) $(RUNTIME_FLAGS) --profile=$(PROFILER) $(PROGRAM) $(USE_MCS_FLAGS) -target:exe -out:mcs2.exe $(BUILT_SOURCES) @$(response)
+
+qh:
+       MONO_PATH="../class/lib/net_2_0_bootstrap:$MONO_PATH" /cvs/mono/runtime/mono-wrapper  ../class/lib/net_2_0_bootstrap/gmcs.exe  /codepage:65001 -d:GMCS_SOURCE  -d:NET_1_1 -d:NET_2_0 -debug -target:exe -out:gmcs.exe gcs-parser.cs  @gmcs.exe.sources