7e8331eb46acbb1864fa0614bd835a1b7656c49b
[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 include ../../build/executable.make
8
9 LOCAL_MCS_FLAGS = -r:System.ServiceProcess.dll -r:Mono.Posix.dll -r:System.dll -unsafe
10
11 # Copied from library.make
12
13 # -- begin --
14 ifeq ($(PLATFORM), win32)
15 GACDIR = `cygpath -w $(mono_libdir)`
16 GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
17 test_flags += -d:WINDOWS
18 else
19 GACDIR = $(mono_libdir)
20 GACROOT = $(DESTDIR)$(mono_libdir)
21 endif
22
23 ifndef RUNTIME_HAS_CONSISTENT_GACDIR
24 gacdir_flag = /gacdir $(GACDIR)
25 endif
26
27 # -- end --
28
29 install-local: install-extras
30 uninstall-local: uninstall-extras
31
32 install-extras: $(gacutil)
33         $(GACUTIL) /i $(the_lib) /f $(gacdir_flag) /root $(GACROOT)
34
35 uninstall-extras: $(gacutil)
36         -$(GACUTIL) /u $(the_lib:.exe=) $(gacdir_flag) /root $(GACROOT)