2019-08-17 11:23:48 +02:00
|
|
|
MYSRCPATHS = ../../common ../../common/crapto1
|
2023-11-11 15:46:47 +01:00
|
|
|
MYSRCS = crypto1.c crapto1.c bucketsort.c nested_util.c
|
2019-08-17 11:23:48 +02:00
|
|
|
MYINCLUDES = -I../../include -I../../common
|
2023-11-03 11:36:10 +01:00
|
|
|
MYCFLAGS = -O3
|
2019-08-17 11:23:48 +02:00
|
|
|
MYDEFS =
|
2019-06-02 00:25:25 +02:00
|
|
|
|
2023-11-11 15:46:47 +01:00
|
|
|
BINS = mfkey32 mfkey32v2 mfkey64 staticnested
|
2019-08-30 21:55:13 +02:00
|
|
|
INSTALLTOOLS = $(BINS)
|
2012-07-01 07:38:26 +00:00
|
|
|
|
2019-08-17 11:23:48 +02:00
|
|
|
include ../../Makefile.host
|
2019-03-10 11:35:03 +01:00
|
|
|
|
2023-11-14 08:22:27 -08:00
|
|
|
# nested_util.c needs pthread support. Older glibc needs it externally
|
|
|
|
ifneq ($(SKIPPTHREAD),1)
|
|
|
|
MYLDLIBS += -lpthread
|
|
|
|
endif
|
|
|
|
|
2020-04-26 22:30:41 +02:00
|
|
|
# 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
|
|
|
|
|
2023-11-03 11:36:10 +01:00
|
|
|
# macOS doesn't like these compiler params
|
|
|
|
ifneq ($(platform),Darwin)
|
|
|
|
MYCFLAGS += --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000
|
|
|
|
endif
|
|
|
|
|
2019-08-17 11:23:48 +02:00
|
|
|
mfkey32 : $(OBJDIR)/mfkey32.o $(MYOBJS)
|
|
|
|
mfkey32v2 : $(OBJDIR)/mfkey32v2.o $(MYOBJS)
|
|
|
|
mfkey64 : $(OBJDIR)/mfkey64.o $(MYOBJS)
|
2023-11-11 15:46:47 +01:00
|
|
|
staticnested : $(OBJDIR)/staticnested.o $(MYOBJS)
|