X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2e8d938befceab53c0b88cad5d9be54061aff9b1..9c624f67b3c3041d171abf75d954ba9fa0ae57a4:/client/Makefile diff --git a/client/Makefile b/client/Makefile index a56fd35b..7e002488 100644 --- a/client/Makefile +++ b/client/Makefile @@ -7,7 +7,8 @@ include ../common/Makefile.common CC = gcc CXX = g++ -COMMON_FLAGS = -std=c99 -O3 -mpopcnt -march=native -g +COMMON_FLAGS += -std=c99 -O3 -mpopcnt -march=native -g + #VPATH = ../common ../zlib OBJDIR = obj @@ -81,10 +82,9 @@ else QTGUI = guidummy.o endif -CORESRCS = uart.c \ - util.c \ - sleep.c - +CORESRCS = uart.c \ + util.c \ + sleep.c CMDSRCS = mifarehost.c \ nonce2key/crapto1.c \ @@ -191,8 +191,9 @@ proxmark3: $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(QTGUI) snooper: $(OBJDIR)/snooper.o $(COREOBJS) $(CMDOBJS) $(OBJDIR)/guidummy.o $(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $@ +cli: LDLIBS+=$(LUALIB) cli: $(OBJDIR)/cli.o $(COREOBJS) $(CMDOBJS) $(OBJDIR)/guidummy.o - $(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $@ + $(CXX) $(CXXFLAGS) -lpthread $^ $(LDLIBS) -o $@ flasher: $(OBJDIR)/flash.o $(OBJDIR)/flasher.o $(COREOBJS) $(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $@