mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-09-23 05:24:32 +08:00
- add -std=c99 -D_ISOC99_SOURCE to compiler flags - fix: include <string.h> instead of <strings.h> in mfkey64.c
20 lines
418 B
Makefile
Executable file
20 lines
418 B
Makefile
Executable file
VPATH = ../../common/crapto1 ../../client
|
|
CC = gcc
|
|
LD = gcc
|
|
CFLAGS = -std=c99 -D_ISOC99_SOURCE -I../../common -I../../client -Wall -O3
|
|
LDFLAGS =
|
|
|
|
OBJS = crypto1.o crapto1.o util.o mfkey.o
|
|
EXES = mfkey32 mfkey64
|
|
WINEXES = $(patsubst %, %.exe, $(EXES))
|
|
|
|
all: $(OBJS) $(EXES)
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
% : %.c $(OBJS)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $<
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(EXES) $(WINEXES)
|