New test.
[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 \
9         signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe
10 SECURITY_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs StrongNameManager.cs $(SECURITY_PROGRAMS:.exe=.cs)
11
12 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
13
14 DISTFILES = README TESTS $(SECURITY_SOURCES)
15
16 ifeq (net_1_1_bootstrap, $(PROFILE))
17 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
18 else
19 all-local: $(SECURITY_PROGRAMS)
20 endif
21
22 install-local: all-local
23 uninstall-local:
24
25 ifndef NO_INSTALL
26 install-local: $(SECURITY_PROGRAMS)
27         $(MKINSTALLDIRS) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
28         for p in $(SECURITY_PROGRAMS) ; do \
29             $(INSTALL_BIN) $$p $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
30             test ! -f $$p.mdb || $(INSTALL_BIN) $$p.mdb $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
31         done
32
33 uninstall-local:
34         for p in $(SECURITY_PROGRAMS) ; do \
35             rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
36         done
37 endif
38
39 test-local:
40
41 run-test-local run-test-ondotnet-local:
42
43 clean-local:
44         rm -f *.exe *.mdb *.pdb
45         rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
46
47 dist-local: dist-default
48
49 sn_sources = sn.cs StrongNameManager.cs AssemblyInfo.cs $(topdir)/build/common/Consts.cs
50 sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(sn_sources)
51         $(CSCOMPILE) /out:$@ $(sn_sources)
52
53 %.exe: %.cs AssemblyInfo.cs $(topdir)/build/common/Consts.cs
54         $(CSCOMPILE) $^