mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
getting confused over pthread vs atomic...
This commit is contained in:
parent
3ff659fd98
commit
22d7adf0c0
1 changed files with 12 additions and 7 deletions
|
@ -4,30 +4,35 @@ MYINCLUDES = -I../../common/cryptorf
|
||||||
MYCFLAGS =
|
MYCFLAGS =
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
|
|
||||||
platform = $(shell uname)
|
# build artifacts
|
||||||
|
BINS = cm sm sma sma_multi
|
||||||
|
INSTALLTOOLS = $(BINS)
|
||||||
|
|
||||||
|
|
||||||
|
include ../../Makefile.host
|
||||||
|
# checking platform can be done only after Makefile.host
|
||||||
|
|
||||||
# Atomic
|
# Atomic
|
||||||
# RPi Zero gcc requires -latomic
|
# RPi Zero gcc requires -latomic
|
||||||
|
MYLDLIBS += -latomic
|
||||||
|
|
||||||
|
# macOS might not like pthread?
|
||||||
ifneq ($(platform),Darwin)
|
ifneq ($(platform),Darwin)
|
||||||
MYLDLIBS += -lpthread
|
MYLDLIBS += -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BINS = cm sm sma sma_multi
|
# macOS needs c++14 standard when compiling c++
|
||||||
INSTALLTOOLS = $(BINS)
|
|
||||||
|
|
||||||
ifeq ($(platform),Darwin)
|
ifeq ($(platform),Darwin)
|
||||||
MYCXXFLAGS = -std=c++14
|
MYCXXFLAGS = -std=c++14
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include ../../Makefile.host
|
|
||||||
|
|
||||||
# checking platform can be done only after 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
|
||||||
MYCFLAGS += -D_ISOC99_SOURCE
|
MYCFLAGS += -D_ISOC99_SOURCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
cm : $(OBJDIR)/cm.o $(MYOBJS)
|
cm : $(OBJDIR)/cm.o $(MYOBJS)
|
||||||
sm : $(OBJDIR)/sm.o $(MYOBJS)
|
sm : $(OBJDIR)/sm.o $(MYOBJS)
|
||||||
sma : $(OBJDIR)/sma.o $(MYOBJS)
|
sma : $(OBJDIR)/sma.o $(MYOBJS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue