2021-04-08 16:44:31 +08:00
|
|
|
MYSRCPATHS = ../../common ../../common/crapto1
|
2021-05-15 16:43:51 +08:00
|
|
|
MYSRCS = crypto1.c crapto1.c bucketsort.c iso14443crc.c sleep.c util_posix.c
|
2021-04-08 16:44:31 +08:00
|
|
|
MYINCLUDES = -I../../include -I../../common
|
2020-05-15 19:07:27 +08:00
|
|
|
MYCFLAGS =
|
|
|
|
MYDEFS =
|
2020-05-15 23:40:59 +08:00
|
|
|
MYLDLIBS =
|
|
|
|
ifneq ($(SKIPPTHREAD),1)
|
|
|
|
MYLDLIBS += -lpthread
|
|
|
|
endif
|
2020-05-15 19:07:27 +08:00
|
|
|
|
2021-03-11 06:46:24 +08:00
|
|
|
BINS = mf_nonce_brute mf_trace_brute
|
2020-05-15 19:07:27 +08:00
|
|
|
INSTALLTOOLS = $(BINS)
|
|
|
|
|
|
|
|
include ../../Makefile.host
|
|
|
|
|
|
|
|
# checking platform can be done only after Makefile.host
|
|
|
|
ifneq (,$(findstring MINGW,$(platform)))
|
|
|
|
# Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)
|
|
|
|
# and setting _ISOC99_SOURCE sets internally __USE_MINGW_ANSI_STDIO=1
|
|
|
|
CFLAGS += -D_ISOC99_SOURCE
|
|
|
|
endif
|
|
|
|
|
|
|
|
mf_nonce_brute : $(OBJDIR)/mf_nonce_brute.o $(MYOBJS)
|
2021-03-11 06:46:24 +08:00
|
|
|
|
2021-04-08 16:44:31 +08:00
|
|
|
mf_trace_brute : $(OBJDIR)/mf_trace_brute.o $(MYOBJS)
|