X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7847961b25c507b5a291c8ddb9aa1c1b222a4b11..dfa1628ac35efc08e4ec5ac359adbf214632592b:/tools/mfkey/Makefile?ds=sidebyside diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index e70ee48c..9dab37f5 100755 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -1,17 +1,20 @@ +VPATH = ../../common ../../common/crapto1 ../../client CC = gcc LD = gcc -CFLAGS = -Wall -Winline -O4 -LDFLAGS = -fPIC +CFLAGS += -std=c99 -D_ISOC99_SOURCE -I../../include -I../../common -I../../client -Wall -O3 +LDFLAGS += -OBJS = crapto1.o crypto1.o -HEADERS = -EXES = mfkey -LIBS = - -all: $(OBJS) $(EXES) $(LIBS) +OBJS = crypto1.o crapto1.o parity.o util_posix.o mfkey.o +EXES = mfkey32 mfkey64 +WINEXES = $(patsubst %, %.exe, $(EXES)) + +all: $(OBJS) $(EXES) + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< % : %.c $(OBJS) - $(LD) $(CFLAGS) -o $@ $< $(OBJS) $(LDFLAGS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $< clean: - rm -f $(OBJS) $(EXES) $(LIBS) + rm -f $(OBJS) $(EXES) $(WINEXES)