[sgen] Clear the card table in the finishing pause
[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 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
11
12 HELPER_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs
13 SN_SOURCES = sn.cs StrongNameManager.cs $(HELPER_SOURCES)
14
15 SECURITY_SOURCES = $(HELPER_SOURCES) $(SN_SOURCES) $(SECURITY_PROGRAMS:.exe=.cs) $(SECURITY_PROGRAMS_2_0:.exe=.cs)
16
17 ifeq ($(DEFAULT_PROFILE), $(PROFILE))
18 SECURITY_TARGETS = $(SECURITY_PROGRAMS) $(SECURITY_PROGRAMS_2_0)
19 endif
20
21 PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
22
23 DISTFILES = README TESTS $(SECURITY_SOURCES)
24
25 ifeq (build, $(PROFILE))
26 all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
27 else
28 all-local: $(SECURITY_TARGETS)
29 endif
30
31 doc-update-local:
32
33 install-local: all-local
34 uninstall-local:
35
36 ifndef NO_INSTALL
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) ; \
42         done
43
44 uninstall-local:
45         for p in $(SECURITY_TARGETS) ; do \
46             rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
47         done
48 endif
49
50 test-local:
51
52 run-test-local run-test-ondotnet-local csproj-local:
53
54 clean-local:
55         rm -f *.exe *.mdb *.pdb
56         rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
57
58 dist-local: dist-default
59
60 sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(SN_SOURCES)
61         $(CSCOMPILE) /out:$@ $(SN_SOURCES)
62
63 permview.exe: permview.cs
64         $(CSCOMPILE) $^ $(HELPER_SOURCES) -r:Mono.Cecil.dll
65
66 %.exe: %.cs $(HELPER_SOURCES)
67         $(CSCOMPILE) $^