mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
allow common makefile options-defines
This commit is contained in:
parent
dfdca20c6c
commit
4556e371d5
2 changed files with 13 additions and 1 deletions
|
@ -27,6 +27,11 @@ SRC_ISO14443a = epa.c iso14443a.c mifareutil.c mifarecmd.c mifaresniff.c mifares
|
||||||
SRC_ISO14443b = iso14443b.c
|
SRC_ISO14443b = iso14443b.c
|
||||||
SRC_CRAPTO1 = crypto1.c des.c
|
SRC_CRAPTO1 = crypto1.c des.c
|
||||||
SRC_CRC = iso14443crc.c crc.c crc16.c crc32.c parity.c
|
SRC_CRC = iso14443crc.c crc.c crc16.c crc32.c parity.c
|
||||||
|
ifneq (,$(findstring SMARTCARD,$(APP_CFLAGS)))
|
||||||
|
SRC_SMARTCARD = i2c.c
|
||||||
|
else
|
||||||
|
SRC_SMARTCARD =
|
||||||
|
endif
|
||||||
#the FPGA bitstream files. Note: order matters!
|
#the FPGA bitstream files. Note: order matters!
|
||||||
FPGA_BITSTREAMS = fpga_lf.bit fpga_hf.bit
|
FPGA_BITSTREAMS = fpga_lf.bit fpga_hf.bit
|
||||||
|
|
||||||
|
@ -44,6 +49,7 @@ THUMBSRC = start.c \
|
||||||
$(SRC_ISO15693) \
|
$(SRC_ISO15693) \
|
||||||
$(SRC_LF) \
|
$(SRC_LF) \
|
||||||
$(SRC_ZLIB) \
|
$(SRC_ZLIB) \
|
||||||
|
$(SRC_SMARTCARD) \
|
||||||
appmain.c \
|
appmain.c \
|
||||||
printf.c \
|
printf.c \
|
||||||
util.c \
|
util.c \
|
||||||
|
|
|
@ -26,6 +26,11 @@ CXXFLAGS = -I../include -Wall -O3
|
||||||
APP_CFLAGS =
|
APP_CFLAGS =
|
||||||
include ../common/Makefile_Enabled_Options.common
|
include ../common/Makefile_Enabled_Options.common
|
||||||
CFLAGS += $(APP_CFLAGS)
|
CFLAGS += $(APP_CFLAGS)
|
||||||
|
ifneq (,$(findstring WITH_SMARTCARD,$(APP_CFLAGS)))
|
||||||
|
SRC_SMARTCARD = cmdsmartcard.c
|
||||||
|
else
|
||||||
|
SRC_SMARTCARD =
|
||||||
|
endif
|
||||||
|
|
||||||
LUAPLATFORM = generic
|
LUAPLATFORM = generic
|
||||||
platform = $(shell uname)
|
platform = $(shell uname)
|
||||||
|
@ -93,7 +98,8 @@ CORESRCS = uart_posix.c \
|
||||||
ui.c \
|
ui.c \
|
||||||
comms.c
|
comms.c
|
||||||
|
|
||||||
CMDSRCS = crapto1/crapto1.c\
|
CMDSRCS = $(SRC_SMARTCARD) \
|
||||||
|
crapto1/crapto1.c\
|
||||||
crapto1/crypto1.c\
|
crapto1/crypto1.c\
|
||||||
polarssl/des.c \
|
polarssl/des.c \
|
||||||
polarssl/aes.c\
|
polarssl/aes.c\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue