mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
...confused makefiles stuff
This commit is contained in:
parent
d7f306084a
commit
908ae0c78c
1 changed files with 1 additions and 15 deletions
|
@ -4,26 +4,12 @@ MYINCLUDES = -I../../common/cryptorf
|
||||||
MYCFLAGS =
|
MYCFLAGS =
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
|
|
||||||
# A better way would be to just try compiling with march and seeing if we succeed
|
|
||||||
cpu_arch = $(shell uname -m)
|
|
||||||
ifneq ($(findstring arm64, $(cpu_arch)), )
|
|
||||||
MYCFLAGS += -mcpu=native
|
|
||||||
|
|
||||||
# iOS 'fun'
|
|
||||||
else ifneq ($(findstring iP, $(cpu_arch)), )
|
|
||||||
MYCFLAGS += -mcpu=native
|
|
||||||
else
|
|
||||||
MYCFLAGS += -march=native
|
|
||||||
endif
|
|
||||||
|
|
||||||
platform = $(shell uname)
|
platform = $(shell uname)
|
||||||
|
|
||||||
# Atomic
|
# Atomic
|
||||||
# RPi Zero gcc requires -latomic
|
# RPi Zero gcc requires -latomic
|
||||||
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
|
|
||||||
# doesn't recognize option --as-needed
|
|
||||||
ifneq ($(platform),Darwin)
|
ifneq ($(platform),Darwin)
|
||||||
MYLDLIBS += -lpthread -Wl,--as-needed -latomic -Wl,--no-as-needed
|
MYLDLIBS += -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BINS = cm sm sma sma_multi
|
BINS = cm sm sma sma_multi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue