mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 18:33:18 +08:00
23 lines
664 B
Makefile
23 lines
664 B
Makefile
MYSRCPATHS = ../../common ../../common/cryptorf
|
|
MYSRCS = cryptolib.c util.c
|
|
MYINCLUDES = -I../../common/cryptorf
|
|
MYCFLAGS =
|
|
MYDEFS =
|
|
MYLDLIBS = -lpthread
|
|
|
|
BINS = cm sm sma sma_multi
|
|
INSTALLTOOLS = $(BINS)
|
|
|
|
include ../../Makefile.host
|
|
|
|
# checking platform can be done only after Makefile.host
|
|
ifneq (,$(findstring MINGW,$(platform)))
|
|
# 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
|
|
CFLAGS += -D_ISOC99_SOURCE
|
|
endif
|
|
|
|
cm : $(OBJDIR)/cm.o $(MYOBJS)
|
|
sm : $(OBJDIR)/sm.o $(MYOBJS)
|
|
sma : $(OBJDIR)/sma.o $(MYOBJS)
|
|
sma_multi : $(OBJDIR)/sma_multi.o $(MYOBJS)
|