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
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 $@