]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - linux/Makefile
Add command to manually set ADC mux source
[proxmark3-svn] / linux / Makefile
... / ...
CommitLineData
1#COMMON_FLAGS = -m32
2LDLIBS = -L/usr/local/lib -lusb -lreadline -lpthread
3LDFLAGS = $(COMMON_FLAGS)
4CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS)
5
6CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall
7QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
8
9ifneq ($(QTLDFLAGS),)
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
18all: proxmark3 snooper cli flasher
19
20all-static: LDLIBS:=-static $(LDLIBS)
21all-static: snooper cli flasher
22
23proxmark3: LDLIBS+=$(QTLDLIBS)
24proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
25
26command.o: ../winsrc/command.cpp translate.h
27
28snooper: snooper.o gui.o command.o usb.o guidummy.o
29
30cli: cli.o gui.o command.o usb.o guidummy.o
31
32flasher: flasher.o usb.o
33
34proxguiqt.moc.cpp: proxguiqt.h
35 $(MOC) -o$@ $^
36
37clean:
38 rm -f cli flasher proxmark3 snooper *.o *.moc.cpp
39
40.PHONY: all clean
Impressum, Datenschutz