Merge pull request #2721 from ludovic-henry/fix-mono_ms_ticks
[mono.git] / mcs / tools / security / certview / Makefile
1 thisdir = tools/security/certview
2 SUBDIRS = 
3 include ../../../build/rules.make
4
5 RESGEN = resgen
6 LIB_REFS = Mono.Security System.Xml
7 LOCAL_MCS_FLAGS = /win32icon:mono.ico
8
9 # SWF isn't quite good enough to build this yet.
10
11 all-local: certview.exe
12
13 install-local:
14         $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
15         $(INSTALL_BIN) certview.exe $(DESTDIR)$(prefix)/bin
16
17 clean-local:
18         rm -f *.exe *.resources
19
20 test-local run-test-local:
21
22 DISTFILES = \
23         CertificateViewer.cs            \
24         CertificateFormatter.cs                 \
25         X509ExtensionsHandler.cs        \
26         certview.exe.config             \
27         certview.glade                  \
28         certview.gladep                 \
29         gcertview.cs                    \
30         gcertview.exe.config            \
31         mono.ico                                \
32         $(resources)
33
34 resources = $(wildcard *.bmp)           \
35         $(wildcard *.png)
36
37 dist-local: dist-default
38
39 sources = CertificateViewer.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs ../../../build/common/Consts.cs
40 cv_libs = /r:System.Windows.Forms.dll /r:System.Drawing.dll
41 gcv_libs = -pkg:gtk-sharp -pkg:glade-sharp
42
43 certview.exe: $(sources) Mono.Tools.CertView.CertificateViewer.resources
44         $(CSCOMPILE) $(cv_libs) -resource:Mono.Tools.CertView.CertificateViewer.resources $(sources)
45
46 # We can't make this by default since it relies on GTK#
47
48 ress= $(foreach res,$(resources), $(addprefix -resource:,$(res)),$(notdir $(res)))
49
50 gcertview.exe: gcertview.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs ../../../build/common/Consts.cs
51         $(CSCOMPILE) $(gcv_libs) $^ -resource:certview.glade $(ress)
52
53 Mono.Tools.CertView.CertificateViewer.resources: CertificateViewer.resx
54         $(RESGEN) $^ $@