2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / mcs / Makefile
index 618c7f87d37a357a238cc957dcebea3c9b8bc5d2..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