6 LDLIBS
= -L
/opt
/local
/lib
-L
/usr
/local
/lib
-lusb
-lreadline
-lpthread
7 LDFLAGS
= $(COMMON_FLAGS
)
8 CFLAGS
= -std
=gnu99
-I.
-I..
/include -I..
/common
-I
/opt
/local
/include -Wall
-Wno-unused-function
$(COMMON_FLAGS
) -g3
10 WINLIBS
= -lgdi32
-lsetupapi
11 CXXFLAGS
= $(shell pkg-config
--cflags QtCore QtGui
2>/dev
/null
) -Wall
12 QTLDLIBS
= $(shell pkg-config
--libs QtCore QtGui
2>/dev
/null
)
34 CMDOBJS
= $(CMDSRCS
:.c
=.o
)
36 ifeq ($(shell echo
""),)
38 ifeq ($(shell uname
),Darwin
)
39 CXXFLAGS
= -I
/Library
/Frameworks
/QtGui.framework
/Versions
/Current
/Headers
-I
/Library
/Frameworks
/QtCore.framework
/Versions
/Current
/Headers
40 QTLDLIBS
= -framework QtGui
-framework QtCore
45 QTGUI
= proxgui.o proxguiqt.o proxguiqt.moc.o
47 MOC ?
= $(shell pkg-config
--variable
=moc_location QtCore
)
54 BINS
= proxmark3 snooper cli flasher
55 CLEAN
= cli flasher proxmark3 snooper
*.o
$(CMDOBJS
) *.moc.
cpp
64 all-static
: LDLIBS
:=-static
$(LDLIBS
)
65 all-static
: snooper cli flasher
67 prox.exe
: prox.o wingui.o
$(CMDOBJS
) flash.o
68 $(CC
) $(CFLAGS
) $(DEFINES
) -o prox.exe prox.o wingui.o
$(CMDOBJS
) flash.c
$(WINLIBS
)
70 proxmark3
: LDLIBS
+=$(QTLDLIBS
)
71 proxmark3
: proxmark3.o
$(CMDOBJS
) proxusb.o
$(QTGUI
)
73 snooper
: snooper.o
$(CMDOBJS
) proxusb.o guidummy.o
75 cli
: cli.o
$(CMDOBJS
) proxusb.o guidummy.o
77 flasher
: flash.o flasher.o proxusb.o
79 proxguiqt.moc.
cpp: proxguiqt.h
86 install_kext
: Info.plist
87 mkdir
-p
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
88 cp Info.plist
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
89 chown
-R root
:wheel
/System
/Library
/Extensions
/Proxmark3.kext
90 chmod
755 /System
/Library
/Extensions
/Proxmark3.kext
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
91 chmod
644 /System
/Library
/Extensions
/Proxmark3.kext
/Contents
/Info.plist
92 rm -rf
/System
/Library
/Caches
/com.apple.kext.caches
93 touch
/System
/Library
/Extensions
94 @echo
"*** You may need to reboot for the kext to take effect."