2019-06-02 06:25:25 +08:00
|
|
|
# Hide full compilation line:
|
|
|
|
Q?=@
|
|
|
|
# To see full command lines, use make Q=
|
|
|
|
|
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
|
2019-06-02 06:25:25 +08:00
|
|
|
$(info [-] CC $<)
|
|
|
|
$(Q)$(CC) $(CFLAGS) -c -o $@ $<
|
2017-03-13 16:45:46 +08:00
|
|
|
|
2019-03-17 20:57:28 +08:00
|
|
|
% : %.c $(OBJS)
|
2019-06-02 06:25:25 +08:00
|
|
|
$(info [=] LD $@)
|
|
|
|
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $<
|
2012-07-01 15:38:26 +08:00
|
|
|
|
2019-03-10 18:35:03 +08:00
|
|
|
clean:
|
2019-06-02 06:25:25 +08:00
|
|
|
$(Q)rm -f $(OBJS) $(EXES)
|