X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/77dee16f6464eac50c72c6f28c4bcd10402cdba3..14d6c4fc3463771fca026f23904eba2858c2d422:/tools/mfkey/Makefile diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index 8fb7aa30..6a4c541f 100755 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -6,14 +6,16 @@ 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)