]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - linux/Makefile
Initial commit for the firmware. Used the 20090306_ela version as baseline.
[proxmark3-svn] / linux / Makefile
... / ...
CommitLineData
1LDFLAGS = -lusb -lreadline -lpthread -L/opt/local/lib
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
16all: proxmark3 snooper
17
18proxmark3: LDFLAGS+=$(QTLDFLAGS)
19proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
20
21snooper: snooper.o gui.o command.o usb.o guidummy.o
22
23proxguiqt.moc.cpp: proxguiqt.h
24 $(MOC) -o$@ $^
25
26clean:
27 rm -f proxmark3 snooper *.o *.moc.cpp
28
29.PHONY: all clean
Impressum, Datenschutz