R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / tools / cryptorf / Makefile
blobbc6b7c853c3a2c919cd38dddadfa98a50348ebb2
1 MYSRCPATHS = ../../common ../../common/cryptorf
2 MYSRCS = cryptolib.c util.c
3 MYINCLUDES = -I../../common/cryptorf
4 MYCFLAGS = -O3
5 MYDEFS =
7 # build artifacts
8 BINS = cm sm sma sma_multi
9 INSTALLTOOLS = $(BINS)
12 include ../../Makefile.host
13 # checking platform can be done only after Makefile.host
15 # Atomic / pThread
16 # RPi Zero gcc requires -latomic
17 # macOS might not like pthread?
18 ifneq ($(platform),Darwin)
19 MYLDLIBS += -lpthread -latomic
20 endif
22 # macOS needs c++14 standard when compiling c++
23 ifeq ($(platform),Darwin)
24 MYCXXFLAGS = -std=c++14
25 endif
27 ifneq (,$(findstring MINGW,$(platform)))
28 # Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)
29 # and setting _ISOC99_SOURCE sets internally __USE_MINGW_ANSI_STDIO=1
30 MYCFLAGS += -D_ISOC99_SOURCE
31 endif
34 cm : $(OBJDIR)/cm.o $(MYOBJS)
35 sm : $(OBJDIR)/sm.o $(MYOBJS)
36 sma : $(OBJDIR)/sma.o $(MYOBJS)
37 sma_multi : $(OBJDIR)/sma_multi.o $(MYOBJS)