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