-
Notifications
You must be signed in to change notification settings - Fork 117
/
Makefile.am
109 lines (84 loc) · 4.42 KB
/
Makefile.am
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
AUTOMAKE_OPTIONS = gnu subdir-objects
AM_CFLAGS=-Wall -pedantic -Wno-overlength-strings @LUA_CFLAGS@ @PCSC_CFLAGS@ @GLIB_CFLAGS@ @GTK_CFLAGS@ @CURL_CFLAGS@ @OPENSSL_INCLUDES@
bin_PROGRAMS= cardpeek
cardpeek_SOURCES = asn1.c asn1.h \
bytestring.c bytestring.h \
ui/gtk/gui_flexi_cell_renderer.c \
ui/gtk/gui_flexi_cell_renderer.h \
dyntree_model.c dyntree_model.h \
crypto.c crypto.h \
replay.c replay.h \
ui.c ui.h \
iso7816.c iso7816.h \
lua_nodes.c lua_nodes.h \
lua_asn1.c lua_asn1.h \
lua_bit.c lua_bit.h \
lua_bytes.c lua_bytes.h \
lua_card.c lua_card.h \
lua_crypto.c lua_crypto.h \
lua_ext.c lua_ext.h \
lua_log.c lua_log.h \
lua_ui.c lua_ui.h \
main.c main.h \
misc.c misc.h \
pathconfig.c pathconfig.h \
smartcard.c smartcard.h \
system_info.c system_info.h \
a_string.c a_string.h \
ui/gtk/gui_core.c ui/gtk/gui_core.h \
ui/gtk/gui_about.c ui/gtk/gui_about.h \
ui/gtk/gui_toolbar.c ui/gtk/gui_toolbar.h \
ui/gtk/gui_logview.c ui/gtk/gui_logview.h \
ui/gtk/gui_cardview.c ui/gtk/gui_cardview.h \
ui/gtk/gui_readerview.c ui/gtk/gui_readerview.h \
ui/gtk/gui_scratchpad.c ui/gtk/gui_scratchpad.h \
ui/gtk/gui_inprogress.c ui/gtk/gui_inprogress.h \
ui/console/console_core.c ui/console/console_core.h \
ui/console/console_inprogress.c ui/console/console_inprogress.h \
ui/console/console_about.c ui/console/console_about.h \
http_download.c http_download.h \
lua_iconv.c lua_iconv.h \
cardpeek_update.c cardpeek_update.h \
cardpeek_public_key.h \
win32/config.h
EXTRA_cardpeek_SOURCES=cardpeek.c osx/cardpeek-osx.m
doc_DATA=doc/cardpeek_ref.en.pdf
cardpeek_LDADD=cardpeek_resources.$(OBJEXT) @LUA_LIBS@ @PCSC_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @CURL_LIBS@ @ICONV_LIBS@ @OPENSSL_LIBS@ @OPENSSL_LDFLAGS@
cardpeek_LDFLAGS=-g
#cardpeek_LDFLAGS=-O2
#
# We add stuff needed for MacOSX (an obj-c file) or else the default (a c file)
#
if OSX_BUNDLE
cardpeek_SOURCES+=osx/cardpeek-osx.m
cardpeek_LDFLAGS+=-framework Cocoa
else
cardpeek_SOURCES += cardpeek.c
endif
dist_man_MANS=cardpeek.1
DRIVERS=drivers/replay_driver.c drivers/null_driver.c drivers/pcsc_driver.c
ICONS=icons/cardpeek-analyzer.png icons/cardpeek-item.png icons/cardpeek-record.png icons/cardpeek-smartcard.png icons/cardpeek-folder.png icons/cardpeek-logo.png icons/cardpeek-application.png icons/cardpeek-file.png icons/cardpeek-block.png icons/cardpeek-atr.png icons/cardpeek-header.png icons/cardpeek-body.png icons/image-missing.png
OSX_ICONS=osx/cardpeek.iconset/icon_128x128.png osx/cardpeek.iconset/icon_16x16.png osx/cardpeek.iconset/icon_256x256.png osx/cardpeek.iconset/icon_32x32.png osx/cardpeek.iconset/icon_512x512.png osx/cardpeek.iconset/icon_64x64.png
OSX_EXTRA=osx/cardpeek-launcher.sh osx/cardpeek.bundle osx/generate_bundle.sh osx/gtkrc osx/Info-cardpeek.plist.in
CLEANFILES=cardpeek_resources.c dot_cardpeek.tar.gz osx/cardpeek.icns
EXTRA_DIST=cardpeek_resources.gresource.xml cardpeek_resources.gresource $(DRIVERS) $(ICONS) dot_cardpeek_dir doc/cardpeek_ref.en.pdf doc/cardpeek_ref.en.odt update_dot_cardpeek_dir.sh script_version.h cardpeek.desktop cardpeek.appdata.xml $(OSX_ICONS)
GLIB_COMPILE_RESOURCES=@GLIB_COMPILE_RESOURCES@
desktopdir = $(datadir)/applications
desktop_DATA = cardpeek.desktop
iconsdir = $(datadir)/icons/hicolor/48x48/apps
icons_DATA = icons/cardpeek-logo.png
appdatadir = $(datadir)/appdata
appdata_DATA = cardpeek.appdata.xml
mostlyclean-local @OPENSSL_LIBS@ :
rm -rf .cardpeek
dist-hook:
rm -rf `find $(distdir)/ -name .svn`
dot_cardpeek.tar.gz: dot_cardpeek_dir
@echo " TAR $<"
$(AM_V_at)tar --help|grep -q sort= && taropts="--sort=name --clamp-mtime --format=gnu --owner=0 --group=0" ; tar -c $$taropts --directory $(srcdir)/dot_cardpeek_dir --exclude=.svn --exclude='\._*' . | gzip -cn9 > dot_cardpeek.tar.gz
cardpeek_resources.$(OBJEXT): dot_cardpeek.tar.gz $(ICONS) AUTHORS COPYING cardpeek_resources.gresource.xml
@echo " GLIB_COMPILE_RESOURCES cardpeek_resources.gresource.xml"
$(AM_V_at)$(GLIB_COMPILE_RESOURCES) --generate-source --sourcedir=. --sourcedir=$(srcdir) --target=cardpeek_resources.c $(srcdir)/cardpeek_resources.gresource.xml
$(AM_V_CC)$(COMPILE) -c cardpeek_resources.c
smartcard.$(OBJEXT): smartcard.c smartcard.h $(DRIVERS)
$(AM_V_CC)$(COMPILE) -c $<