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 -r:System.dll
8 SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe makecert.exe chktrust.exe crlupdate.exe \
9 signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe cert-sync.exe
10 SECURITY_PROGRAMS_2_0 = httpcfg.exe
12 HELPER_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs
13 SN_SOURCES = sn.cs StrongNameManager.cs $(HELPER_SOURCES)
15 SECURITY_SOURCES = $(HELPER_SOURCES) $(SN_SOURCES) $(SECURITY_PROGRAMS:.exe=.cs) $(SECURITY_PROGRAMS_2_0:.exe=.cs)
17 ifeq ($(DEFAULT_PROFILE), $(PROFILE))
18 SECURITY_TARGETS = $(SECURITY_PROGRAMS) $(SECURITY_PROGRAMS_2_0)
21 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
23 DISTFILES = README TESTS $(SECURITY_SOURCES)
25 ifeq (build, $(PROFILE))
26 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
28 all-local: $(SECURITY_TARGETS)
33 install-local: all-local
37 install-local: $(SECURITY_TARGETS)
38 $(MKINSTALLDIRS) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
39 for p in $(SECURITY_TARGETS) ; do \
40 $(INSTALL_BIN) $$p $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
41 test ! -f $$p.mdb || $(INSTALL_BIN) $$p.mdb $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
45 for p in $(SECURITY_TARGETS) ; do \
46 rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
52 run-test-local run-test-ondotnet-local csproj-local:
55 rm -f *.exe *.mdb *.pdb
56 rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
58 dist-local: dist-default
60 sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(SN_SOURCES)
61 $(CSCOMPILE) /out:$@ $(SN_SOURCES)
63 permview.exe: permview.cs
64 $(CSCOMPILE) $^ $(HELPER_SOURCES) -r:Mono.Cecil.dll
66 %.exe: %.cs $(HELPER_SOURCES)