1 MYSRCPATHS
= ..
/..
/common ..
/..
/common
/cryptorf
2 MYSRCS
= cryptolib.c util.c
3 MYINCLUDES
= -I..
/..
/common
/cryptorf
8 BINS
= cm sm sma sma_multi
12 include ..
/..
/Makefile.host
13 # checking platform can be done only after Makefile.host
16 # RPi Zero gcc requires -latomic
17 # macOS might not like pthread?
18 ifneq ($(platform
),Darwin
)
19 MYLDLIBS
+= -lpthread
-latomic
22 # macOS needs c++14 standard when compiling c++
23 ifeq ($(platform
),Darwin
)
24 MYCXXFLAGS
= -std
=c
++14
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
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
)