compile for optimized speed execution

This commit is contained in:
iceman1001 2023-11-03 11:36:10 +01:00
commit 68f296cc14
3 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,7 @@
MYSRCPATHS = ../../common ../../common/cryptorf
MYSRCS = cryptolib.c util.c
MYINCLUDES = -I../../common/cryptorf
MYCFLAGS =
MYCFLAGS = -O3
MYDEFS =
# build artifacts

View file

@ -1,7 +1,7 @@
MYSRCPATHS = ../../common ../../common/crapto1
MYSRCS = crypto1.c crapto1.c bucketsort.c iso14443crc.c sleep.c util_posix.c
MYINCLUDES = -I../../include -I../../common
MYCFLAGS =
MYCFLAGS = -O3
MYDEFS =
MYLDLIBS =
ifneq ($(SKIPPTHREAD),1)

View file

@ -1,7 +1,7 @@
MYSRCPATHS = ../../common ../../common/crapto1
MYSRCS = crypto1.c crapto1.c bucketsort.c
MYINCLUDES = -I../../include -I../../common
MYCFLAGS = -O3 --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000
MYCFLAGS = -O3
MYDEFS =
BINS = mfkey32 mfkey32v2 mfkey64
@ -16,6 +16,11 @@ ifneq (,$(findstring MINGW,$(platform)))
CFLAGS += -D_ISOC99_SOURCE
endif
# macOS doesn't like these compiler params
ifneq ($(platform),Darwin)
MYCFLAGS += --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000
endif
mfkey32 : $(OBJDIR)/mfkey32.o $(MYOBJS)
mfkey32v2 : $(OBJDIR)/mfkey32v2.o $(MYOBJS)
mfkey64 : $(OBJDIR)/mfkey64.o $(MYOBJS)