copying the latest Sys.Web.Services from trunk.
[mono.git] / mcs / tools / security / Makefile
1 thisdir = tools/security
2 SUBDIRS = 
3 DIST_ONLY_SUBDIRS = certview
4 include ../../build/rules.make
5
6 LOCAL_MCS_FLAGS = /lib:$(topdir)/class/lib/$(PROFILE) /r:Mono.Security.dll
7
8 SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe MakeCert.exe chktrust.exe signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe
9 SECURITY_SOURCES = AssemblyInfo.cs StrongNameManager.cs $(SECURITY_PROGRAMS:.exe=.cs)
10
11 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
12
13 DISTFILES = README $(SECURITY_SOURCES)
14
15 ifeq (net_1_1_bootstrap, $(PROFILE))
16 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
17 else
18 all-local: $(SECURITY_PROGRAMS)
19 endif
20
21 install-local: all-local
22 uninstall-local:
23
24 ifndef NO_INSTALL
25 install-local: $(SECURITY_PROGRAMS)
26         $(MKINSTALLDIRS) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
27         for p in $(SECURITY_PROGRAMS) ; do \
28             $(INSTALL_BIN) $$p $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
29             test ! -f $$p.mdb || $(INSTALL_BIN) $$p.mdb $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
30         done
31
32 uninstall-local:
33         for p in $(SECURITY_PROGRAMS) ; do \
34             rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
35         done
36 endif
37
38 test-local:
39
40 run-test-local run-test-ondotnet-local:
41
42 clean-local:
43         rm -f *.exe *.mdb *.pdb
44         rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
45
46 dist-local: dist-default
47
48 sn_sources = sn.cs StrongNameManager.cs AssemblyInfo.cs
49 sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(sn_sources)
50         $(CSCOMPILE) /out:$@ $(sn_sources)
51
52 %.exe: %.cs AssemblyInfo.cs
53         $(CSCOMPILE) $^