[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / tools / tuner / Makefile
index 64369c42dc1d75f7fd2d6f617c1819bbd8d65ef4..c364223deb0419d3df72bd4ed047101a2d167dd7 100644 (file)
@@ -1,86 +1,15 @@
 thisdir = tools/tuner
 SUBDIRS =
+DEP_DIRS = linker
 include ../../build/rules.make
 
-LINKER = ../linker/monolinker.exe
-MASTER_INFOS_ZIP = http://mono.ximian.com/masterinfos/masterinfo-sl11a-refresh.zip
+LOCAL_MCS_FLAGS = -r:$(topdir)/class/lib/$(PROFILE)/monolinker.exe
+LIB_REFS = System System.Core System.Xml Mono.Cecil
 
-LINKER_PLUGINS = \
-       Mono.Tuner/PrintStatus.dll      \
-       Mono.Tuner/RemoveSerialization.dll      \
-       Mono.Tuner/CheckVisibility.dll  \
-#      Mono.Tuner/InjectAttributes.dll \
+LIBRARY = Mono.Tuner.dll
 
-LINKER_DESCS = \
-       Descriptors/mscorlib.xml        \
-       Descriptors/smcs.xml    \
-       Descriptors/System.xml  \
+NO_INSTALL = yes
+NO_TEST = yes
+NO_SIGN_ASSEMBLY = yes
 
-LOCAL_MCS_FLAGS = -r:$(LINKER) -r:Mono.Cecil.dll
-
-LINKER_SOURCES = $(LINKER_PLUGINS:.dll=.cs)
-
-DISTFILES = README $(LINKER_SOURCES) $(LINKER_DESCS)
-
-WORKING_DIR = $(mono_libdir)/mono/2.1
-OUTPUT_DIR = output
-
-ifneq (net_2_1, $(PROFILE))
-all-local: $(LINKER_PLUGINS)
-
-install-local:
-
-clean-local:
-       rm -f Mono.Tuner/*.dll
-       rm -f Mono.Tuner/*.mdb
-       rm -f Mono.Tuner/*.pdb
-
-else
-all-local:
-
-install-local: tune end-install
-
-clean-local:
-       rm -rf $(OUTPUT_DIR)
-       rm -rf masterinfos*
-
-endif
-
-uninstall-local:
-
-dist-local: dist-default
-
-test-local:
-
-run-test-local run-test-ondotnet-local:
-
-MCS_MASTER_INFOS =     \
-       masterinfos/silverlight/mscorlib.info   \
-       masterinfos/silverlight/System.info             \
-       masterinfos/silverlight/System.Core.info        \
-       masterinfos/silverlight/System.Xml.Core.info    \
-
-$(MCS_MASTER_INFOS):
-       wget -O masterinfos.zip $(MASTER_INFOS_ZIP)
-       unzip masterinfos.zip
-
-LINKER_FLAGS = -d $(WORKING_DIR) -o $(OUTPUT_DIR) -l none -c link -a smcs
-LINKER_STEPS = \
-       Mono.Tuner.PrintStatus,PrintStatus:OutputStep   \
-       Mono.Tuner.RemoveSerialization,RemoveSerialization:OutputStep   \
-       Mono.Tuner.CheckVisibility,CheckVisibility      \
-
-tune: $(MCS_MASTER_INFOS)
-       MONO_PATH="Mono.Tuner$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(LINKER) $(LINKER_FLAGS) $(LINKER_DESCS:%=-x %) $(LINKER_STEPS:%=-s %) $(MCS_MASTER_INFOS:%=-i %)
-
-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)
-
-end-install:
-       cp $(OUTPUT_DIR)/mscorlib.dll $(mono_libdir)/mono/2.1/mscorlib.dll
-       $(GACUTIL) /i $(OUTPUT_DIR)/System.dll /f /root $(mono_libdir) /package 2.1
-       $(GACUTIL) /i $(OUTPUT_DIR)/System.Core.dll /f /root $(mono_libdir) /package 2.1
-       $(GACUTIL) /i $(OUTPUT_DIR)/System.Xml.Core.dll /f /root $(mono_libdir) /package 2.1
-
-%.dll: %.cs
-       $(CSCOMPILE) /t:library $^
+include ../../build/library.make