[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / tools / mono-service / Makefile
index 2f44b2e970a7db98b05c525f74f09cc8ecf436b5..84286e7f95fffbf75b4559235ea776e10005d7c5 100644 (file)
@@ -2,22 +2,18 @@ thisdir = tools/mono-service
 SUBDIRS = 
 include ../../build/rules.make
 
-PROGRAM = $(topdir)/class/lib/$(PROFILE)/mono-service.exe
+PROGRAM = mono-service.exe
+
+PROGRAM_SNK = ../../class/mono.snk
 
 include ../../build/executable.make
 
-LOCAL_MCS_FLAGS = -r:System.ServiceProcess.dll -r:Mono.Posix.dll -unsafe
+LOCAL_MCS_FLAGS = -unsafe -publicsign
+LIB_REFS = System.ServiceProcess Mono.Posix System
 
 # Copied from library.make
 
 # -- begin --
-ifdef NO_INSTALL
-GACUTIL = :
-else
-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)
-endif
-
 ifeq ($(PLATFORM), win32)
 GACDIR = `cygpath -w $(mono_libdir)`
 GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
@@ -37,7 +33,7 @@ install-local: install-extras
 uninstall-local: uninstall-extras
 
 install-extras: $(gacutil)
-       $(GACUTIL) /i $(PROGRAM) /f $(gacdir_flag) /root $(GACROOT)
+       $(GACUTIL) /i $(the_lib) /f $(gacdir_flag) /root $(GACROOT)
 
 uninstall-extras: $(gacutil)
-       -$(GACUTIL) /u $(PROGRAM:.exe=) $(gacdir_flag) /root $(GACROOT)
+       -$(GACUTIL) /u $(the_lib:.exe=) $(gacdir_flag) /root $(GACROOT)