blob: 91bef5d09a0faf0f00a79a09de122b73f1fe56a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
thisdir = tools/security
SUBDIRS =
DIST_ONLY_SUBDIRS = certview
include ../../build/rules.make
LOCAL_MCS_FLAGS = /lib:$(topdir)/class/lib/$(PROFILE) -r:Mono.Security.dll
SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe makecert.exe chktrust.exe \
signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe
SECURITY_PROGRAMS_2_0 = httpcfg.exe
HELPER_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs
SN_SOURCES = sn.cs StrongNameManager.cs $(HELPER_SOURCES)
SECURITY_SOURCES = $(HELPER_SOURCES) $(SN_SOURCES) $(SECURITY_PROGRAMS:.exe=.cs) $(SECURITY_PROGRAMS_2_0:.exe=.cs)
ifeq (net_1_1, $(PROFILE))
SECURITY_TARGETS = $(SECURITY_PROGRAMS)
else
SECURITY_TARGETS = $(SECURITY_PROGRAMS_2_0)
endif
PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
DISTFILES = README TESTS $(SECURITY_SOURCES)
ifeq (net_1_1_bootstrap, $(PROFILE))
all-local: $(topdir)/class/lib/$(PROFILE)/sn.exe
else
all-local: $(SECURITY_TARGETS)
endif
install-local: all-local
uninstall-local:
ifndef NO_INSTALL
install-local: $(SECURITY_TARGETS)
$(MKINSTALLDIRS) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
for p in $(SECURITY_TARGETS) ; do \
$(INSTALL_BIN) $$p $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
test ! -f $$p.mdb || $(INSTALL_BIN) $$p.mdb $(DESTDIR)$(PROGRAM_INSTALL_DIR) ; \
done
uninstall-local:
for p in $(SECURITY_TARGETS) ; do \
rm -f $(DESTDIR)$(PROGRAM_INSTALL_DIR)/$$p* ; \
done
endif
test-local:
run-test-local run-test-ondotnet-local:
clean-local:
rm -f *.exe *.mdb *.pdb
rm -f $(topdir)/class/lib/$(PROFILE)/sn.exe*
dist-local: dist-default
sn.exe $(topdir)/class/lib/$(PROFILE)/sn.exe: $(SN_SOURCES)
$(CSCOMPILE) /out:$@ $(SN_SOURCES)
permview.exe: permview.cs
$(CSCOMPILE) $^ $(HELPER_SOURCES) -r:Mono.Cecil.dll
%.exe: %.cs $(HELPER_SOURCES)
$(CSCOMPILE) $^
|