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 ifeq (default, $(PROFILE))
9 SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe makecert.exe chktrust.exe \
10 signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe
12 SECURITY_PROGRAMS = httpcfg.exe
15 SECURITY_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs StrongNameManager.cs $(SECURITY_PROGRAMS:.exe=.cs)
17 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
19 DISTFILES = README TESTS $(SECURITY_SOURCES)
21 ifeq (net_1_1_bootstrap, $(PROFILE))
22 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
24 all-local: $(SECURITY_PROGRAMS)
27 install-local: all-local
31 install-local: $(SECURITY_PROGRAMS)
32 $(MKINSTALLDIRS) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
33 for p in $(SECURITY_PROGRAMS) ; do \
34 $(INSTALL_BIN) $$p $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
35 test ! -f $$p.mdb || $(INSTALL_BIN) $$p.mdb $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
39 for p in $(SECURITY_PROGRAMS) ; do \
40 rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
46 run-test-local run-test-ondotnet-local:
49 rm -f *.exe *.mdb *.pdb
50 rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
52 dist-local: dist-default
54 sn_sources = sn.cs StrongNameManager.cs AssemblyInfo.cs $(topdir)/build/common/Consts.cs
55 sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(sn_sources)
56 $(CSCOMPILE) /out:$@ $(sn_sources)
58 %.exe: %.cs AssemblyInfo.cs $(topdir)/build/common/Consts.cs