]> git.zerfleddert.de Git - proxmark3-svn/blob - linux/Makefile
update arm toolchain installer for linux and make it a little more user friendly
[proxmark3-svn] / linux / Makefile
1 LDFLAGS = -lusb -lreadline -lpthread -L/opt/local/lib
2 CFLAGS = -I. -I/opt/local/include -Wall
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
16 all: proxmark3 snooper cli
17
18 proxmark3: LDFLAGS+=$(QTLDFLAGS)
19 proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
20
21 snooper: snooper.o gui.o command.o usb.o guidummy.o
22
23 cli: cli.o gui.o command.o usb.o guidummy.o
24
25 proxguiqt.moc.cpp: proxguiqt.h
26 $(MOC) -o$@ $^
27
28 clean:
29 rm -f cli proxmark3 snooper *.o *.moc.cpp
30
31 .PHONY: all clean
Impressum, Datenschutz