2 LDLIBS
= -L
/usr
/local
/lib
-lusb
-lreadline
-lpthread
3 LDFLAGS
= $(COMMON_FLAGS
)
4 CFLAGS
= -I.
-I
/opt
/local
/include -Wall
-Wno-unused-function
$(COMMON_FLAGS
)
6 CXXFLAGS
= $(shell pkg-config
--cflags QtCore QtGui
2>/dev
/null
) -Wall
7 QTLDLIBS
= $(shell pkg-config
--libs QtCore QtGui
2>/dev
/null
)
10 QTGUI
= proxgui.o proxguiqt.o proxguiqt.moc.o
12 MOC
= $(shell type moc-qt4
>/dev
/null
2>&1 && echo moc-qt4 || echo moc
)
18 all: proxmark3 snooper cli flasher
20 all-static
: LDLIBS
:=-static
$(LDLIBS
)
21 all-static
: snooper cli flasher
23 proxmark3
: LDLIBS
+=$(QTLDLIBS
)
24 proxmark3
: proxmark3.o gui.o command.o usb.o
$(QTGUI
)
26 command.o
: command.
cpp translate.h
28 snooper
: snooper.o gui.o command.o usb.o guidummy.o
30 cli
: cli.o gui.o command.o usb.o guidummy.o
32 flasher
: flasher.o usb.o
34 proxguiqt.moc.
cpp: proxguiqt.h
38 rm -f cli flasher proxmark3 snooper
*.o
*.moc.
cpp