[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / tools / mono-service / Makefile
index da0ec8bebc4a6cf157da8638a9727292e7db9734..84286e7f95fffbf75b4559235ea776e10005d7c5 100644 (file)
@@ -4,6 +4,36 @@ include ../../build/rules.make
 
 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 --
+ifeq ($(PLATFORM), win32)
+GACDIR = `cygpath -w $(mono_libdir)`
+GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
+test_flags += -d:WINDOWS
+else
+GACDIR = $(mono_libdir)
+GACROOT = $(DESTDIR)$(mono_libdir)
+endif
+
+ifndef RUNTIME_HAS_CONSISTENT_GACDIR
+gacdir_flag = /gacdir $(GACDIR)
+endif
+
+# -- end --
+
+install-local: install-extras
+uninstall-local: uninstall-extras
+
+install-extras: $(gacutil)
+       $(GACUTIL) /i $(the_lib) /f $(gacdir_flag) /root $(GACROOT)
+
+uninstall-extras: $(gacutil)
+       -$(GACUTIL) /u $(the_lib:.exe=) $(gacdir_flag) /root $(GACROOT)