X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftools%2Ftuner%2FMakefile;h=c364223deb0419d3df72bd4ed047101a2d167dd7;hb=aeccd22792f34fb77c340180174f73f6c3270200;hp=22a8752beb58dc9356288608c89e89f9dde5dcb2;hpb=c9819337e8209a2718f8ad003fa02e865b831f7b;p=mono.git diff --git a/mcs/tools/tuner/Makefile b/mcs/tools/tuner/Makefile index 22a8752beb5..c364223deb0 100644 --- a/mcs/tools/tuner/Makefile +++ b/mcs/tools/tuner/Makefile @@ -1,110 +1,15 @@ thisdir = tools/tuner SUBDIRS = +DEP_DIRS = linker include ../../build/rules.make -sn = $(topdir)/class/lib/net_1_1_bootstrap/sn.exe -SN = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn) -SNFLAGS = -q -R +LOCAL_MCS_FLAGS = -r:$(topdir)/class/lib/$(PROFILE)/monolinker.exe +LIB_REFS = System System.Core System.Xml Mono.Cecil -LINKER = ../linker/monolinker.exe +LIBRARY = Mono.Tuner.dll -TUNER_SOURCES = \ - Mono.Tuner/TunerAnnotations.cs \ - Mono.Tuner/PrintStatus.cs \ - Mono.Tuner/RemoveSerialization.cs \ - Mono.Tuner/AdjustVisibility.cs \ - Mono.Tuner/CheckVisibility.cs \ - Mono.Tuner/InjectAttributes.cs \ +NO_INSTALL = yes +NO_TEST = yes +NO_SIGN_ASSEMBLY = yes -TUNER_DESCS = \ - Descriptors/mscorlib.xml \ - Descriptors/smcs.xml \ - Descriptors/System.xml \ - -TUNER_MASTERS = \ - masterinfos/silverlight/mscorlib.info \ - masterinfos/silverlight/System.info \ - masterinfos/silverlight/System.Net.info \ - masterinfos/silverlight/System.Core.info \ - masterinfos/silverlight/System.Xml.info \ - masterinfos/silverlight/System.Runtime.Serialization.info - -LOCAL_MCS_FLAGS = -r:$(LINKER) -r:Mono.Cecil.dll - -DISTFILES = README $(TUNER_SOURCES) $(TUNER_DESCS) $(TUNER_MASTERS) - -WORKING_DIR = $(topdir)/class/lib/net_2_1_raw -OUTPUT_DIR = $(topdir)/class/lib/net_2_1 - -DLLFILES = mscorlib.dll System.dll System.Net.dll System.Xml.dll System.Core.dll System.Runtime.Serialization.dll -FILES = smcs.exe $(DLLFILES) -WORKING_FILES = $(FILES:%=$(WORKING_DIR)/%) -OUTPUT_FILES = $(FILES:%=$(OUTPUT_DIR)/%) - -ifneq (net_2_1, $(PROFILE)) -all-local: Mono.Tuner.dll - -install-local: - -clean-local: - rm -f *.dll *.mdb *.pdb - -else -all-local: $(OUTPUT_FILES) - -install-local: end-install - -clean-local: - rm -f $(OUTPUT_FILES) tune.stamp tune.stampt - -endif - -uninstall-local: - -dist-local: dist-default - -test-local run-test-local run-test-ondotnet-local: - -TUNER_FLAGS = -d $(WORKING_DIR) -o $(OUTPUT_DIR) \ - -l none \ - -c link \ - -a smcs \ - -b true \ - -m display_internalized false \ - -TUNER_STEPS = \ - Mono.Tuner.InjectAttributes,Mono.Tuner:OutputStep \ - Mono.Tuner.AdjustVisibility,Mono.Tuner:OutputStep \ - Mono.Tuner.PrintStatus,Mono.Tuner:OutputStep \ - Mono.Tuner.RemoveSerialization,Mono.Tuner:OutputStep \ - Mono.Tuner.CheckVisibility,Mono.Tuner \ - -$(OUTPUT_FILES): tune.stamp - test -f $@ || { rm -f $<; $(MAKE) $<; } - -tune.stamp: $(WORKING_FILES) $(OUTPUT_DIR)/.stamp - touch $@t - MONO_PATH=".$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/default$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) --debug $(LINKER) $(TUNER_FLAGS) $(TUNER_DESCS:%=-x %) $(TUNER_STEPS:%=-s %) $(TUNER_MASTERS:%=-i %) - for i in $(DLLFILES); do $(SN) $(SNFLAGS) $(OUTPUT_DIR)/$$i $(topdir)/class/mono.snk; done - mv $@t $@ - -gacutil = $(topdir)/class/lib/net_1_1_bootstrap/gacutil.exe -GACUTIL = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil) -bootstrap - -TUNER_INSTALL_DIR = $(DESTDIR)$(mono_libdir)/mono/2.1 - -end-install: inst-mscorlib.dll inst-smcs.exe gac-System gac-System.Net gac-System.Xml gac-System.Core gac-System.Runtime.Serialization - -inst-%: $(OUTPUT_DIR)/% - $(MKINSTALLDIRS) $(TUNER_INSTALL_DIR) - $(INSTALL_LIB) $(OUTPUT_DIR)/$* $(TUNER_INSTALL_DIR)/$* - test ! -f $(OUTPUT_DIR)/$*.mdb || $(INSTALL_LIB) $(OUTPUT_DIR)/$*.mdb $(TUNER_INSTALL_DIR)/$*.mdb - -gac-%: $(OUTPUT_DIR)/%.dll - $(GACUTIL) /i $(OUTPUT_DIR)/$*.dll /f /root $(DESTDIR)$(mono_libdir) /package 2.1 - -Mono.Tuner.dll: $(TUNER_SOURCES) - $(CSCOMPILE) /out:Mono.Tuner.dll /t:library $(TUNER_SOURCES) - -retune: - rm -f tune.stamp && $(MAKE) tune.stamp +include ../../build/library.make