4 LDLIBS
= -L
/opt
/local
/lib
-L
/usr
/local
/lib
-lusb
-lreadline
-lpthread
5 LDFLAGS
= $(COMMON_FLAGS
)
6 CFLAGS
= -I.
-I
/opt
/local
/include -Wall
-Wno-unused-function
$(COMMON_FLAGS
)
8 WINLIBS
= -lgdi32
-lsetupapi
9 #CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -arch i386 -D_
10 #QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) -arch i386
13 QTGUI
= proxgui.o proxguiqt.o proxguiqt.moc.o
15 MOC
= $(shell type moc-qt4
>/dev
/null
2>&1 && echo moc-qt4 || echo moc
)
21 ifeq ($(shell echo
""),)
23 BINS
= proxmark3 snooper cli flasher
24 CLEAN
= cli flasher proxmark3 snooper
*.o
*.moc.
cpp
33 all-static
: LDLIBS
:=-static
$(LDLIBS
)
34 all-static
: snooper cli flasher
36 prox.exe
: prox.c wingui.c command.c
37 $(WINCC
) $(CFLAGS
) $(DEFINES
) -o prox.exe prox.c wingui.c command.c
$(WINLIBS
)
39 proxmark3
: LDLIBS
+=$(QTLDLIBS
)
40 proxmark3
: proxmark3.o gui.o command.o usb.o
$(QTGUI
)
44 snooper
: snooper.o gui.o command.o usb.o guidummy.o
46 cli
: cli.o gui.o command.o usb.o guidummy.o
48 flasher
: flasher.o usb.o
50 proxguiqt.moc.
cpp: proxguiqt.h