| 1 |
thisdir = tools/security/certview |
| 2 |
SUBDIRS = |
| 3 |
include ../../../build/rules.make |
| 4 |
|
| 5 |
LIB_REFS = Mono.Security System.Xml |
| 6 |
LOCAL_MCS_FLAGS = /win32icon:mono.ico |
| 7 |
|
| 8 |
all-local: certview.exe |
| 9 |
|
| 10 |
install-local: |
| 11 |
$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin |
| 12 |
$(INSTALL_BIN) certview.exe $(DESTDIR)$(prefix)/bin |
| 13 |
|
| 14 |
clean-local: |
| 15 |
rm -f *.exe *.resources |
| 16 |
|
| 17 |
test-local run-test-local: |
| 18 |
|
| 19 |
DISTFILES = \ |
| 20 |
CertificateViewer.cs \ |
| 21 |
CertificateFormatter.cs \ |
| 22 |
X509ExtensionsHandler.cs \ |
| 23 |
certview.exe.config \ |
| 24 |
certview.glade \ |
| 25 |
certview.gladep \ |
| 26 |
gcertview.cs \ |
| 27 |
gcertview.exe.config \ |
| 28 |
mono.ico \ |
| 29 |
$(resources) |
| 30 |
|
| 31 |
resources = $(wildcard *.bmp) \ |
| 32 |
$(wildcard *.png) |
| 33 |
|
| 34 |
dist-local: dist-default |
| 35 |
|
| 36 |
sources = CertificateViewer.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs ../../../build/common/Consts.cs |
| 37 |
cv_libs = /r:System.Windows.Forms.dll /r:System.Drawing.dll |
| 38 |
gcv_libs = -pkg:gtk-sharp -pkg:glade-sharp |
| 39 |
|
| 40 |
certview.exe: $(sources) Mono.Tools.CertView.CertificateViewer.resources |
| 41 |
$(CSCOMPILE) $(cv_libs) -resource:Mono.Tools.CertView.CertificateViewer.resources $(sources) |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
ress= $(foreach res,$(resources), $(addprefix -resource:,$(res)),$(notdir $(res))) |
| 46 |
|
| 47 |
gcertview.exe: gcertview.cs CertificateFormatter.cs X509ExtensionsHandler.cs ../AssemblyInfo.cs ../../../build/common/Consts.cs |
| 48 |
$(CSCOMPILE) $(gcv_libs) $^ -resource:certview.glade $(ress) |
| 49 |
|
| 50 |
Mono.Tools.CertView.CertificateViewer.resources: CertificateViewer.resx |
| 51 |
$(RESGEN) $^ $@ |