2019-03-17 20:57:28 +08:00
|
|
|
VPATH = ../../common ../../common/crapto1 ../../client
|
2012-07-01 15:38:26 +08:00
|
|
|
CC = gcc
|
|
|
|
LD = gcc
|
2019-03-17 20:57:28 +08:00
|
|
|
CFLAGS += -std=c99 -D_ISOC99_SOURCE -I../../include -I../../common -I../../client -Wall -O3
|
2017-09-29 04:31:20 +08:00
|
|
|
LDFLAGS +=
|
2012-07-01 15:38:26 +08:00
|
|
|
|
2019-03-17 20:57:28 +08:00
|
|
|
OBJS = crypto1.o crapto1.o parity.o util_posix.o bucketsort.o
|
2019-03-28 21:19:41 +08:00
|
|
|
EXES = mfkey32 mfkey32v2 mfkey64
|
2019-03-10 18:35:03 +08:00
|
|
|
|
2017-03-13 16:45:46 +08:00
|
|
|
all: $(OBJS) $(EXES)
|
2012-07-01 15:38:26 +08:00
|
|
|
|
2017-03-13 16:45:46 +08:00
|
|
|
%.o : %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2019-03-17 20:57:28 +08:00
|
|
|
% : %.c $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $<
|
2012-07-01 15:38:26 +08:00
|
|
|
|
2019-03-10 18:35:03 +08:00
|
|
|
clean:
|
2019-03-29 16:49:42 +08:00
|
|
|
rm -f $(OBJS) $(EXES)
|