From 5984e1c03ed0dcf9741c28e6c87c42c2235ede97 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 15 May 2020 17:40:59 +0200 Subject: [PATCH] makefiles: allow to skip pthread (for termux) --- client/Makefile | 5 ++++- tools/mf_nonce_brute/Makefile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/Makefile b/client/Makefile index 54fa3af2c..ad2f5aa75 100644 --- a/client/Makefile +++ b/client/Makefile @@ -22,7 +22,10 @@ vpath %.dic dictionaries OBJDIR = obj LDLIBS ?= -L/usr/local/lib -LDLIBS += -lreadline -lpthread -lm +LDLIBS += -lreadline -lm +ifneq ($(SKIPPTHREAD),1) +LDLIBS += -lpthread +endif # RPi Zero gcc requires -latomic # but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld diff --git a/tools/mf_nonce_brute/Makefile b/tools/mf_nonce_brute/Makefile index 7672c89a4..cf565e72c 100644 --- a/tools/mf_nonce_brute/Makefile +++ b/tools/mf_nonce_brute/Makefile @@ -3,7 +3,10 @@ MYSRCS = crypto1.c crapto1.c bucketsort.c iso14443crc.c sleep.c MYINCLUDES = -I../../include -I../../common MYCFLAGS = MYDEFS = -MYLDLIBS = -lpthread +MYLDLIBS = +ifneq ($(SKIPPTHREAD),1) +MYLDLIBS += -lpthread +endif BINS = mf_nonce_brute INSTALLTOOLS = $(BINS)