X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fbuild%2Frules.make;h=43d791cf16b0c037f00602800cd3eb3d599bf7a8;hb=f304ca8be1b8bfcc34c069cb062c2b0a6ef5fd57;hp=5d2d6ee29d51e7168943f057d700b7c9c229cfed;hpb=5b558abeeb255a3179d4ca6a85617e051c6abd38;p=mono.git diff --git a/mcs/build/rules.make b/mcs/build/rules.make index 5d2d6ee29d5..43d791cf16b 100644 --- a/mcs/build/rules.make +++ b/mcs/build/rules.make @@ -22,11 +22,15 @@ VERSION = 0.93 Q=$(if $(V),,@) # echo -e "\\t" does not work on some systems, so use 5 spaces -Q_MCS=$(if $(V),,@echo "MCS [$(PROFILE)] $(notdir $(@))";) +Q_MCS=$(if $(V),,@echo "MCS [$(intermediate)$(PROFILE)] $(notdir $(@))";) + +ifndef BUILD_TOOLS_PROFILE +BUILD_TOOLS_PROFILE = build +endif USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS) USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS) -USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS) +USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS) $(CPPFLAGS) CSCOMPILE = $(Q_MCS) $(MCS) $(USE_MCS_FLAGS) BASCOMPILE = $(MBAS) $(USE_MBAS_FLAGS) CCOMPILE = $(CC) $(USE_CFLAGS) @@ -37,15 +41,12 @@ INSTALL_BIN = $(INSTALL) -c -m 755 INSTALL_LIB = $(INSTALL_BIN) MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs INTERNAL_MBAS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mbas/mbas.exe -INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/basic/mcs.exe +INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/mcs.exe INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe corlib = mscorlib.dll -ifndef BUILD_TOOLS_PROFILE -BUILD_TOOLS_PROFILE = basic -endif - -INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/resgen.exe +INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/resgen.exe +RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) depsdir = $(topdir)/build/deps @@ -80,8 +81,14 @@ include $(topdir)/build/config-default.make ifndef PLATFORM ifeq ($(OS),Windows_NT) +ifneq ($(V),) +$(info *** Assuming PLATFORM is 'win32'.) +endif PLATFORM = win32 else +ifneq ($(V),) +$(info *** Assuming PLATFORM is 'linux'.) +endif PLATFORM = linux endif endif @@ -102,12 +109,16 @@ endif # Rest of the configuration ifndef PROFILE -PROFILE = net_2_0 +PROFILE = $(DEFAULT_PROFILE) endif include $(topdir)/build/profiles/$(PROFILE).make -include $(topdir)/build/config.make +ifdef BCL_OPTIMIZE +PROFILE_MCS_FLAGS += -optimize +endif + ifdef OVERRIDE_TARGET_ALL all: all.override else @@ -117,8 +128,8 @@ endif ifdef NO_INSTALL GACUTIL = : else -gacutil = $(topdir)/class/lib/basic/gacutil.exe -GACUTIL = MONO_PATH="$(topdir)/class/lib/basic$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil) +gacutil = $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/gacutil.exe +GACUTIL = MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil) endif STD_TARGETS = test run-test run-test-ondotnet clean install uninstall doc-update @@ -199,6 +210,6 @@ dist-default: ## Documentation stuff Q_MDOC =$(if $(V),,@echo "MDOC [$(PROFILE)] $(notdir $(@))";) -MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/net_4_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" \ - $(RUNTIME) $(topdir)/tools/mdoc/mdoc.exe +# net_2_0 is needed because monodoc is only compiled in that profile +MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/$(DEFAULT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/$(DEFAULT_PROFILE)/mdoc.exe