X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fmcs%2FMakefile;h=43a2780851e2951341f0ad3643d120cb53c7de59;hb=d65a53fe4d9025061ff247c1a39354743c1642dc;hp=70f7ecab294929049b6550e23c9957b5eea361dd;hpb=6c035e225abc36a15501a03f574744824225350b;p=mono.git diff --git a/mcs/mcs/Makefile b/mcs/mcs/Makefile index 70f7ecab294..43a2780851e 100644 --- a/mcs/mcs/Makefile +++ b/mcs/mcs/Makefile @@ -8,25 +8,29 @@ EXTRA_DISTFILES = \ *mcs.sln \ *cs-parser.jay \ *.sources \ - generic.cs \ NOTES \ TODO \ - gmcs.exe.config + *mcs.exe.config -ifeq (1.0, $(FRAMEWORK_VERSION)) -COMPILER_NAME = mcs +COMPILER_NAME = gmcs + +ifeq (net_2_0, $(PROFILE)) +INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/gmcs.exe endif -ifeq (2.0, $(FRAMEWORK_VERSION)) -LOCAL_MCS_FLAGS += -d:GMCS_SOURCE -COMPILER_NAME = gmcs +ifeq (moonlight_bootstrap, $(PROFILE)) +INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/gmcs.exe endif ifeq (2.1, $(FRAMEWORK_VERSION)) -LOCAL_MCS_FLAGS += -d:GMCS_SOURCE -d:SMCS_SOURCE +LOCAL_MCS_FLAGS += -d:SMCS_SOURCE COMPILER_NAME = smcs endif +ifeq (4.0, $(FRAMEWORK_VERSION)) +COMPILER_NAME = dmcs +endif + PROGRAM = $(topdir)/class/lib/$(PROFILE)/$(COMPILER_NAME).exe BUILT_SOURCES = cs-parser.cs @@ -39,50 +43,9 @@ CLEAN_FILES += y.output $(topdir)/jay/jay -cvt < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@ -ifeq (net_2_0_bootstrap, $(PROFILE)) - -all-local $(STD_TARGETS:=-local): - @: - -all-local: $(PROGRAM) $(PROGRAM).config -clean-local: clean-program -clean-program: - rm -f $(PROGRAM) $(PROGRAM).config - -$(PROGRAM) $(PROGRAM).config: $(dir $(PROGRAM))/.stamp - -$(PROGRAM): $(topdir)/class/lib/net_1_1/mcs.exe - cp $< $@ - -$(PROGRAM).config: gmcs.exe.config - cp $< $@ - -else - -ifeq (net_2_0, $(PROFILE)) - -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/gmcs.exe $(DEBUG_FLAGS) - -clean-local: clean-net_2_0_bootstrap -clean-net_2_0_bootstrap: - cd .. && $(MAKE) NO_DIR_CHECK=yes PROFILE=net_2_0_bootstrap clean - -bootstrap_libs = mscorlib.dll System.dll System.Xml.dll Mono.CompilerServices.SymbolWriter.dll -bootstrap_libfiles = $(bootstrap_libs:%=$(topdir)/class/lib/net_2_0_bootstrap/%) - -$(bootstrap_libfiles): bootstrap-libs - @: -.PHONY: bootstrap-libs -bootstrap-libs: - cd .. && $(MAKE) NO_DIR_CHECK=yes PROFILE=net_2_0_bootstrap all - -$(PROGRAM): $(bootstrap_libfiles) -endif - KEEP_OUTPUT_FILE_COPY = yes include ../build/executable.make -endif csproj-local: config_file=`basename $(PROGRAM) .exe`-$(PROFILE).input; \ @@ -150,12 +113,6 @@ profile : $(PROGRAM) # # quick hack target, to quickly develop the gmcs compiler # Update manually. -qh: - MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) ../class/lib/net_2_0/gmcs.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 - @ cp $(COMPILER_NAME).exe* $(topdir)/class/lib/$(PROFILE)/ - -pa: cs-parser.cs - MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) ../class/lib/net_2_0/gmcs.exe /codepage:65001 -d:GMCS_SOURCE -d:NET_1_1 -d:NET_2_0 -debug -target:exe -out:foo.exe cs-parser.cs foo.cs -main:X @gmcs.exe.sources q: cs-parser.cs qh echo 'System.Console.WriteLine ("Hello");' | mono csharp.exe