]> cvs.zerfleddert.de Git - proxmark3-svn/blob - client/Makefile
Decreased BigBuff mem, some elf flasher fixes (needs more work) but flashing correctl...
[proxmark3-svn] / client / Makefile
1 WINCC=c:\mingw\bin\gcc
2
3 #COMMON_FLAGS = -m32
4
5 LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
6 LDFLAGS = $(COMMON_FLAGS)
7 CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g3
8
9 WINLIBS = -lgdi32 -lsetupapi
10 CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall
11 QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
12
13 ifeq ($(shell echo ""),)
14
15 ifeq ($(shell uname),Darwin)
16 CXXFLAGS = -I/Library/Frameworks/QtGui.framework/Versions/Current/Headers -I/Library/Frameworks/QtCore.framework/Versions/Current/Headers
17 QTLDLIBS = -framework QtGui -framework QtCore
18 MOC = moc
19 endif
20
21 ifneq ($(QTLDLIBS),)
22 QTGUI = proxgui.o proxguiqt.o proxguiqt.moc.o
23 CFLAGS += -DHAVE_GUI
24 MOC ?= $(shell pkg-config --variable=moc_location QtCore)
25 LINK.o = $(LINK.cpp)
26 else
27 QTGUI = guidummy.o
28 endif
29
30 RM = rm -f
31 BINS = proxmark3 snooper cli flasher
32 CLEAN = cli flasher proxmark3 snooper *.o *.moc.cpp
33 else
34 RM = del
35 BINS = prox.exe
36 CLEAN = prox.exe
37 endif
38
39 all: $(BINS)
40
41 all-static: LDLIBS:=-static $(LDLIBS)
42 all-static: snooper cli flasher
43
44 prox.exe: prox.c wingui.c command.c flash.c
45 $(WINCC) $(CFLAGS) $(DEFINES) -o prox.exe prox.c wingui.c command.c flash.c $(WINLIBS)
46
47 proxmark3: LDLIBS+=$(QTLDLIBS)
48 proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
49
50 command.o: command.c
51
52 snooper: snooper.o gui.o command.o usb.o guidummy.o
53
54 cli: cli.o gui.o command.o usb.o guidummy.o
55
56 flasher: flash.o flasher.o usb.o
57
58 proxguiqt.moc.cpp: proxguiqt.h
59 $(MOC) -o$@ $^
60
61 clean:
62 $(RM) $(CLEAN)
63
64 # must be run as root
65 install_kext: Info.plist
66 mkdir -p /System/Library/Extensions/Proxmark3.kext/Contents
67 cp Info.plist /System/Library/Extensions/Proxmark3.kext/Contents
68 chown -R root:wheel /System/Library/Extensions/Proxmark3.kext
69 chmod 755 /System/Library/Extensions/Proxmark3.kext /System/Library/Extensions/Proxmark3.kext/Contents
70 chmod 644 /System/Library/Extensions/Proxmark3.kext/Contents/Info.plist
71 rm -rf /System/Library/Caches/com.apple.kext.caches
72 touch /System/Library/Extensions
73 @echo "*** You may need to reboot for the kext to take effect."
74
75 .PHONY: all clean
Impressum, Datenschutz