mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
rework mfkey Makefile and move util_posix to common, use Makefile.host
This commit is contained in:
parent
5d699610c9
commit
aebfe0af19
3 changed files with 10 additions and 24 deletions
|
@ -1,27 +1,13 @@
|
||||||
# Hide full compilation line:
|
MYSRCPATHS = ../../common ../../common/crapto1
|
||||||
ifneq ($(V),1)
|
MYSRCS = crypto1.c crapto1.c bucketsort.c
|
||||||
Q?=@
|
MYINCLUDES = -I../../include -I../../common
|
||||||
endif
|
MYCFLAGS = -std=c99 -D_ISOC99_SOURCE
|
||||||
# To see full command lines, use make V=1
|
MYDEFS =
|
||||||
|
|
||||||
VPATH = ../../common ../../common/crapto1 ../../client
|
BINS = mfkey32 mfkey32v2 mfkey64
|
||||||
CC = gcc
|
|
||||||
LD = gcc
|
|
||||||
CFLAGS += -std=c99 -D_ISOC99_SOURCE -I../../include -I../../common -I../../client -Wall -O3
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
OBJS = crypto1.o crapto1.o parity.o util_posix.o bucketsort.o
|
include ../../Makefile.host
|
||||||
EXES = mfkey32 mfkey32v2 mfkey64
|
|
||||||
|
|
||||||
all: $(OBJS) $(EXES)
|
mfkey32 : $(OBJDIR)/mfkey32.o $(MYOBJS)
|
||||||
|
mfkey32v2 : $(OBJDIR)/mfkey32v2.o $(MYOBJS)
|
||||||
%.o : %.c
|
mfkey64 : $(OBJDIR)/mfkey64.o $(MYOBJS)
|
||||||
$(info [-] CC $<)
|
|
||||||
$(Q)$(CC) $(CFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
% : %.c $(OBJS)
|
|
||||||
$(info [=] LD $@)
|
|
||||||
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $<
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(Q)rm -f $(OBJS) $(EXES)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue