1 thisdir = tools/security
3 DIST_ONLY_SUBDIRS = certview
4 include ../../build/rules.make
6 LOCAL_MCS_FLAGS = /lib:$(topdir)/class/lib/$(PROFILE) -r:Mono.Security.dll
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)
12 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
14 DISTFILES = README TESTS $(SECURITY_SOURCES)
16 ifeq (net_1_1_bootstrap, $(PROFILE))
17 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
19 all-local: $(SECURITY_PROGRAMS)
22 install-local: all-local
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) ; \
34 for p in $(SECURITY_PROGRAMS) ; do \
35 rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
41 run-test-local run-test-ondotnet-local:
44 rm -f *.exe *.mdb *.pdb
45 rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
47 dist-local: dist-default
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)
53 %.exe: %.cs AssemblyInfo.cs $(topdir)/build/common/Consts.cs