1 LDFLAGS
= -ltermcap
-lusb
-lreadline
-lpthread
-L
/opt
/local
/lib
2 CFLAGS
= -I.
-I
/opt
/local
/include -Wall
-Wno-unused-function
4 CXXFLAGS
= $(shell pkg-config
--cflags QtCore QtGui
2>/dev
/null
) -Wall
5 QTLDFLAGS
= $(shell pkg-config
--libs QtCore QtGui
2>/dev
/null
)
8 QTGUI
= proxgui.o proxguiqt.o proxguiqt.moc.o
10 MOC
= $(shell type moc-qt4
>/dev
/null
2>&1 && echo moc-qt4 || echo moc
)
16 all: proxmark3 snooper cli flasher
18 proxmark3
: LDFLAGS
+=$(QTLDFLAGS
)
19 proxmark3
: proxmark3.o gui.o command.o usb.o
$(QTGUI
)
21 command.o
: ..
/winsrc
/command.
cpp translate.h
23 snooper
: snooper.o gui.o command.o usb.o guidummy.o
25 cli
: cli.o gui.o command.o usb.o guidummy.o
27 flasher
: flasher.o usb.o
29 proxguiqt.moc.
cpp: proxguiqt.h
33 rm -f cli flasher proxmark3 snooper
*.o
*.moc.
cpp