]>
Commit | Line | Data |
---|---|---|
93f36463 | 1 | LDFLAGS = -ltermcap -lusb -lreadline -lpthread -L/opt/local/lib |
3f9515e2 | 2 | CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function |
6658905f | 3 | |
4 | CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall | |
5 | QTLDFLAGS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) | |
6 | ||
7 | ifneq ($(QTLDFLAGS),) | |
8 | QTGUI = proxgui.o proxguiqt.o proxguiqt.moc.o | |
9 | CFLAGS += -DHAVE_GUI | |
10 | MOC = $(shell type moc-qt4 >/dev/null 2>&1 && echo moc-qt4 || echo moc) | |
11 | LINK.o = $(LINK.cpp) | |
12 | else | |
13 | QTGUI = guidummy.o | |
14 | endif | |
15 | ||
06735128 | 16 | all: proxmark3 snooper cli flasher |
6658905f | 17 | |
18 | proxmark3: LDFLAGS+=$(QTLDFLAGS) | |
19 | proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI) | |
20 | ||
3f030abe | 21 | command.o: ../winsrc/command.cpp translate.h |
22 | ||
6658905f | 23 | snooper: snooper.o gui.o command.o usb.o guidummy.o |
24 | ||
db917a16 | 25 | cli: cli.o gui.o command.o usb.o guidummy.o |
26 | ||
06735128 | 27 | flasher: flasher.o usb.o |
28 | ||
6658905f | 29 | proxguiqt.moc.cpp: proxguiqt.h |
30 | $(MOC) -o$@ $^ | |
31 | ||
32 | clean: | |
06735128 | 33 | rm -f cli flasher proxmark3 snooper *.o *.moc.cpp |
6658905f | 34 | |
35 | .PHONY: all clean |