-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.win32
47 lines (35 loc) · 2.28 KB
/
Makefile.win32
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
CC = gcc
GLIB_COMPILE_RESOURCES = glib-compile-resources
OBJECTS = asn1.o bytestring.o ui/gtk/gui_flexi_cell_renderer.o dyntree_model.o \
crypto.o replay.o ui.o iso7816.o lua_nodes.o lua_asn1.o \
lua_bit.o lua_bytes.o lua_card.o lua_crypto.o lua_ext.o \
lua_log.o lua_ui.o main.o misc.o pathconfig.o smartcard.o \
system_info.o a_string.o ui/gtk/gui_about.o ui/gtk/gui_toolbar.o \
ui/gtk/gui_logview.o ui/gtk/gui_cardview.o ui/gtk/gui_readerview.o \
http_download.o ui/gtk/gui_scratchpad.o ui/gtk/gui_inprogress.o \
ui/gtk/gui_core.o ui/console/console_core.o \
ui/console/console_about.o ui/console/console_inprogress.o \
lua_iconv.o win32/win32compat.o win32/resource.o \
cardpeek_resources.o cardpeek_update.o
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
LIBS = `pkg-config --libs gtk+-3.0` -L/usr/local/lib -lcurl -L/usr/lib -lssl -lcrypto -llua -L./win32/ -lwinscard -liconv -lreadline -lpdcurses
CFLAGS = -Wall -pedantic -Wno-overlength-strings -Wno-long-long -DCURL_STATICLIB -I . -I /usr/include -I ./win32/ `pkg-config --cflags gtk+-3.0`
all: cardpeek
cardpeek: $(OBJECTS) win32/libwinscard.a
$(CC) -mwindows -o cardpeek $(OBJECTS) $(LIBS)
dot_cardpeek.tar.gz: dot_cardpeek_dir
@echo " TAR $<"
tar czf dot_cardpeek.tar.gz --directory dot_cardpeek_dir --exclude=.svn .
cardpeek_resources.o: dot_cardpeek.tar.gz $(ICONS) AUTHORS COPYING cardpeek_resources.gresource.xml
$(GLIB_COMPILE_RESOURCES) --generate-source --target=cardpeek_resources.c cardpeek_resources.gresource.xml
$(CC) $(CFLAGS) -c cardpeek_resources.c
@echo "COMPILED RESOURCES"
win32/resource.o: win32/resource.rc
windres win32/resource.rc -O coff -o win32/resource.o
win32/libwinscard.a: win32/winscard.def win32/winscard.h
dlltool.exe -k -d win32/winscard.def -l win32/libwinscard.a c:/WINDOWS/system32/winscard.dll
clean:
rm -f $(OBJECTS) cardpeek.exe win32/libwinscard.a dot_cardpeek.tar.gz *~ cardpeek_resources.c