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