X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/4211fdce315b6f20d624374d5a249627bf871a06..76a608af8e342b50718cfd0e53c0fa932304dbd9:/tools/mfkey/Makefile diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index 79b42a43..6a4c541f 100755 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -1,19 +1,21 @@ CC = gcc LD = gcc -CFLAGS = -Wall -Winline -O4 +CFLAGS = -std=c99 -march=native -Wall -Winline -O3 LDFLAGS = OBJS = crapto1.o crypto1.o HEADERS = crapto1.h EXES = mfkey64 mfkey32 mfkey32v2 -WINEXE = mfkey64.exe mfkey32.exe mfkey32v2.exe -LIBS = +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) $(WINEXE) + rm -f $(OBJS) $(EXES) $(WINEXE)