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
QTGUI = guidummy.o
endif
-CORESRCS = uart.c \
- util.c \
- sleep.c
-
+CORESRCS = uart.c \
+ util.c \
+ sleep.c
CMDSRCS = mifarehost.c \
nonce2key/crapto1.c \
loclass/ikeys.c \
loclass/elite_crack.c \
loclass/fileutils.c \
+ whereami.c \
parity.c \
crc.c \
crc16.c \
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 $@