mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
osx needs to link to openssl, since it uses libressl instead
This commit is contained in:
parent
82c3d2134d
commit
1013320aa0
1 changed files with 10 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
MYSRCPATHS = ../../common ../../common/mbedtls
|
MYSRCPATHS = ../../common ../../common/mbedtls
|
||||||
MYSRCS = util_posix.c
|
MYSRCS = util_posix.c
|
||||||
MYINCLUDES = -I../../include -I../../common -I../../common/mbedtls
|
MYINCLUDES = -I../../include -I../../common -I../../common/mbedtls
|
||||||
MYCFLAGS = -march=native -Ofast
|
MYCFLAGS = -march=native -Ofast -msse2 -msse -maes
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
MYLDLIBS = -lcrypto
|
MYLDLIBS = -lcrypto
|
||||||
|
|
||||||
ifneq ($(SKIPPTHREAD),1)
|
ifneq ($(SKIPPTHREAD),1)
|
||||||
MYLDLIBS += -lpthread
|
MYLDLIBS += -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
BINS = brute_key mfd_aes_brute
|
BINS = brute_key mfd_aes_brute
|
||||||
INSTALLTOOLS = $(BINS)
|
INSTALLTOOLS = $(BINS)
|
||||||
|
|
||||||
|
@ -18,7 +18,12 @@ include ../../Makefile.host
|
||||||
ifneq (,$(findstring MINGW,$(platform)))
|
ifneq (,$(findstring MINGW,$(platform)))
|
||||||
# Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)
|
# 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
|
# and setting _ISOC99_SOURCE sets internally __USE_MINGW_ANSI_STDIO=1
|
||||||
CFLAGS += -D_ISOC99_SOURCE
|
MYCFLAGS += -D_ISOC99_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
|
# OS X needs linking to openssl
|
||||||
|
ifeq ($(platform),Darwin)
|
||||||
|
MYLDFLAGS += -L/usr/local/opt/openssl@3/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
brute_key : $(OBJDIR)/brute_key.o $(MYOBJS)
|
brute_key : $(OBJDIR)/brute_key.o $(MYOBJS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue