X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/489c39c9a5e9046dc9438b4ec1c57b1feace1038..76a608af8e342b50718cfd0e53c0fa932304dbd9:/tools/mfkey/Makefile diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index aede38fd..6a4c541f 100755 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -1,17 +1,21 @@ CC = gcc LD = gcc -CFLAGS = -std=c99 -Wall -Winline -O3 +CFLAGS = -std=c99 -march=native -Wall -Winline -O3 LDFLAGS = OBJS = crapto1.o crypto1.o HEADERS = crapto1.h -EXES = mfkey64 mfkey64.exe mfkey32 mfkey32.exe mfkey32v2 mfkey32v2.exe -LIBS = +EXES = mfkey64 mfkey32 mfkey32v2 +WINEXE = $(patsubst %, %.exe, $(EXES)) -all: $(OBJS) $(EXES) $(LIBS) +all: $(OBJS) $(EXES) -% : %.c $(OBJS) - $(LD) $(CFLAGS) -o $@ $< $(OBJS) $(LDFLAGS) +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +% : %.c + $(LD) $(CFLAGS) -o $@ $(OBJS) $< clean: - rm -f $(OBJS) $(EXES) $(LIBS) + rm -f $(OBJS) $(EXES) $(WINEXE) +