cdca30fb3fbe5489a9eb10852ebb1d49e7a3b639
[mono.git] / mcs / tools / mono-service / Makefile
1 thisdir = tools/mono-service
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 PROGRAM = mono-service.exe
6
7 PROGRAM_SNK = ../../class/mono.snk
8
9 include ../../build/executable.make
10
11 LOCAL_MCS_FLAGS = -unsafe -publicsign -keyfile:../../class/mono.snk
12 LIB_REFS = System.ServiceProcess Mono.Posix System
13
14 # Copied from library.make
15
16 # -- begin --
17 ifeq ($(PLATFORM), win32)
18 GACDIR = `cygpath -w $(mono_libdir)`
19 GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
20 test_flags += -d:WINDOWS
21 else
22 GACDIR = $(mono_libdir)
23 GACROOT = $(DESTDIR)$(mono_libdir)
24 endif
25
26 ifndef RUNTIME_HAS_CONSISTENT_GACDIR
27 gacdir_flag = /gacdir $(GACDIR)
28 endif
29
30 # -- end --
31
32 install-local: install-extras
33 uninstall-local: uninstall-extras
34
35 install-extras: $(gacutil)
36         $(GACUTIL) /i $(the_lib) /f $(gacdir_flag) /root $(GACROOT)
37
38 uninstall-extras: $(gacutil)
39         -$(GACUTIL) /u $(the_lib:.exe=) $(gacdir_flag) /root $(GACROOT)