mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
makefiles: allow to skip pthread (for termux)
This commit is contained in:
parent
94e1a9e680
commit
5984e1c03e
2 changed files with 8 additions and 2 deletions
|
@ -22,7 +22,10 @@ vpath %.dic dictionaries
|
||||||
OBJDIR = obj
|
OBJDIR = obj
|
||||||
|
|
||||||
LDLIBS ?= -L/usr/local/lib
|
LDLIBS ?= -L/usr/local/lib
|
||||||
LDLIBS += -lreadline -lpthread -lm
|
LDLIBS += -lreadline -lm
|
||||||
|
ifneq ($(SKIPPTHREAD),1)
|
||||||
|
LDLIBS += -lpthread
|
||||||
|
endif
|
||||||
|
|
||||||
# RPi Zero gcc requires -latomic
|
# RPi Zero gcc requires -latomic
|
||||||
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
|
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
|
||||||
|
|
|
@ -3,7 +3,10 @@ MYSRCS = crypto1.c crapto1.c bucketsort.c iso14443crc.c sleep.c
|
||||||
MYINCLUDES = -I../../include -I../../common
|
MYINCLUDES = -I../../include -I../../common
|
||||||
MYCFLAGS =
|
MYCFLAGS =
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
MYLDLIBS = -lpthread
|
MYLDLIBS =
|
||||||
|
ifneq ($(SKIPPTHREAD),1)
|
||||||
|
MYLDLIBS += -lpthread
|
||||||
|
endif
|
||||||
|
|
||||||
BINS = mf_nonce_brute
|
BINS = mf_nonce_brute
|
||||||
INSTALLTOOLS = $(BINS)
|
INSTALLTOOLS = $(BINS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue