]> git.zerfleddert.de Git - proxmark3-svn/blame - client/Makefile
There's no painless way to do this, but it needs to be done --
[proxmark3-svn] / client / Makefile
CommitLineData
709b784c 1#COMMON_FLAGS = -m32
a99c6a19 2LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
709b784c 3LDFLAGS = $(COMMON_FLAGS)
4CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS)
6658905f 5
a99c6a19 6#CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -arch i386 -D_
7#QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) -arch i386
6658905f 8
789d706a 9ifneq ($(QTLDLIBS),)
6658905f 10QTGUI = proxgui.o proxguiqt.o proxguiqt.moc.o
11CFLAGS += -DHAVE_GUI
12MOC = $(shell type moc-qt4 >/dev/null 2>&1 && echo moc-qt4 || echo moc)
13LINK.o = $(LINK.cpp)
14else
15QTGUI = guidummy.o
16endif
17
06735128 18all: proxmark3 snooper cli flasher
6658905f 19
709b784c 20all-static: LDLIBS:=-static $(LDLIBS)
21all-static: snooper cli flasher
22
23proxmark3: LDLIBS+=$(QTLDLIBS)
6658905f 24proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
25
a99c6a19 26command.o: command.c
3f030abe 27
6658905f 28snooper: snooper.o gui.o command.o usb.o guidummy.o
29
db917a16 30cli: cli.o gui.o command.o usb.o guidummy.o
31
06735128 32flasher: flasher.o usb.o
33
6658905f 34proxguiqt.moc.cpp: proxguiqt.h
35 $(MOC) -o$@ $^
36
37clean:
06735128 38 rm -f cli flasher proxmark3 snooper *.o *.moc.cpp
6658905f 39
40.PHONY: all clean
Impressum, Datenschutz