Added uninstall target
[mono.git] / mcs / tools / security / certview / Makefile
1 thisdir = tools/security/certview
2 SUBDIRS = 
3 include ../../../build/rules.make
4
5 RESGEN = monoresgen
6 LOCAL_MCS_FLAGS = /lib:$(topdir)/class/lib /r:Mono.Security.dll /r:System.Xml.dll
7
8 # SWF isn't quite good enough to build this yet.
9
10 all-local: certview.exe
11
12 install-local:
13         $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
14         $(INSTALL_BIN) certview.exe $(DESTDIR)$(prefix)/bin
15
16 clean-local:
17         rm -f *.exe *.resources
18
19 test-local run-test-local:
20
21 DISTFILES = \
22         CertificateViewer.cs            \
23         CertificateFormatter.cs         \
24         X509ExtensionsHandler.cs        \
25         certview.exe.config             \
26         certview.glade                  \
27         certview.gladep                 \
28         gcertview.cs                    \
29         gcertview.exe.config            \
30         mono.ico                        \
31         $(wildcard *.bmp)               \
32         $(wildcard *.png)
33
34 dist-local: dist-default
35
36 # FIXME: should add  /win32icon:mono.ico to the flags for certview.exe
37
38 sources = CertificateViewer.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs
39 cv_libs = /r:System.Windows.Forms.dll /r:System.Drawing.dll
40 gcv_libs = /r:gdk-sharp.dll /r:glib-sharp.dll /r:glade-sharp.dll /r:gtk-sharp.dll
41
42 certview.exe: $(sources) Mono.Tools.CertView.CertificateViewer.resources
43         $(CSCOMPILE) $(cv_libs) /res:Mono.Tools.CertView.CertificateViewer.resources $(sources)
44
45 # We can't make this by default since it relies on GTK#
46
47 gcertview.exe: gcertview.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs
48         $(CSCOMPILE) $(gcv_libs) /unsafe $^
49
50 Mono.Tools.CertView.CertificateViewer.resources: CertificateViewer.resx
51         $(RESGEN) $^ $@