2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
[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 = /r:$(topdir)/class/lib/Mono.Security.dll
7
8 SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe MakeCert.exe chktrust.exe signcode.exe setreg.exe certmgr.exe
9
10 DISTFILES = \
11         AssemblyInfo.cs \
12         cert2spc.cs     \
13         MakeCert.cs     \
14         README          \
15         secutil.cs      \
16         sn.cs           \
17         chktrust.cs     \
18         signcode.cs     \
19         setreg.cs       \
20         certmgr.cs      \
21         StrongNameManager.cs
22
23 all-local: $(SECURITY_PROGRAMS)
24
25 install-local: $(SECURITY_PROGRAMS)
26         $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
27         for p in $(SECURITY_PROGRAMS) ; do \
28             $(INSTALL_BIN) $$p $(DESTDIR)$(prefix)/bin ; \
29         done
30
31 uninstall-local:
32         for p in $(SECURITY_PROGRAMS) ; do \
33             rm -f $(DESTDIR)$(prefix)/bin/$$p ; \
34         done
35
36 test-local:
37
38 run-test-local:
39
40 clean-local:
41         rm -f *.exe *.pdb
42
43 dist-local: dist-default
44
45 sn.exe: sn.cs StrongNameManager.cs AssemblyInfo.cs
46         $(CSCOMPILE) $^
47
48 %.exe: %.cs AssemblyInfo.cs
49         $(CSCOMPILE) $^