mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
chg: hitag compile flag optional
This commit is contained in:
parent
9c776c8935
commit
b29b07c8ad
1 changed files with 10 additions and 3 deletions
|
@ -31,7 +31,6 @@ APP_CFLAGS = $(PLATFORM_DEFS) \
|
||||||
-DWITH_CRC \
|
-DWITH_CRC \
|
||||||
-DON_DEVICE \
|
-DON_DEVICE \
|
||||||
-DWITH_LF \
|
-DWITH_LF \
|
||||||
-DWITH_HITAG \
|
|
||||||
-DWITH_ISO15693 \
|
-DWITH_ISO15693 \
|
||||||
-DWITH_LEGICRF \
|
-DWITH_LEGICRF \
|
||||||
-DWITH_ISO14443b \
|
-DWITH_ISO14443b \
|
||||||
|
@ -43,6 +42,7 @@ APP_CFLAGS = $(PLATFORM_DEFS) \
|
||||||
-fno-strict-aliasing -ffunction-sections -fdata-sections
|
-fno-strict-aliasing -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
### IMPORTANT - move the commented variable below this line
|
### IMPORTANT - move the commented variable below this line
|
||||||
|
# -DWITH_HITAG \
|
||||||
# -DWITH_FPC \
|
# -DWITH_FPC \
|
||||||
# -DWITH_LCD \
|
# -DWITH_LCD \
|
||||||
# -DWITH_EMV \
|
# -DWITH_EMV \
|
||||||
|
@ -54,11 +54,11 @@ APP_CFLAGS = $(PLATFORM_DEFS) \
|
||||||
# -DWITH_LF_PROXBRUTE
|
# -DWITH_LF_PROXBRUTE
|
||||||
# -DWITH_LF_HIDBRUTE
|
# -DWITH_LF_HIDBRUTE
|
||||||
# -DWITH_HF_YOUNG
|
# -DWITH_HF_YOUNG
|
||||||
# -DWITH_HF_MATTYRUN -
|
# -DWITH_HF_MATTYRUN
|
||||||
# -DWITH_HF_COLIN
|
# -DWITH_HF_COLIN
|
||||||
# -DWITH_HF_BOG
|
# -DWITH_HF_BOG
|
||||||
|
|
||||||
SRC_LF = lfops.c hitag2_crypto.c hitag2.c hitagS.c lfsampling.c pcf7931.c lfdemod.c
|
SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c
|
||||||
SRC_ISO15693 = iso15693.c iso15693tools.c
|
SRC_ISO15693 = iso15693.c iso15693tools.c
|
||||||
SRC_ISO14443a = iso14443a.c mifareutil.c mifarecmd.c epa.c mifaresim.c
|
SRC_ISO14443a = iso14443a.c mifareutil.c mifarecmd.c epa.c mifaresim.c
|
||||||
SRC_ISO14443b = iso14443b.c
|
SRC_ISO14443b = iso14443b.c
|
||||||
|
@ -88,6 +88,12 @@ else
|
||||||
SRC_FPC =
|
SRC_FPC =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(findstring WITH_HITAG,$(APP_CLAGS)))
|
||||||
|
SRC_HITAG = hitag2_crypto.c hitag2.c hitagS.c
|
||||||
|
else
|
||||||
|
SRC_HITAG =
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(findstring WITH_LCD,$(APP_CLAGS)))
|
ifneq (,$(findstring WITH_LCD,$(APP_CLAGS)))
|
||||||
SRC_LCD = fonts.c LCD.c
|
SRC_LCD = fonts.c LCD.c
|
||||||
else
|
else
|
||||||
|
@ -155,6 +161,7 @@ THUMBSRC = start.c \
|
||||||
$(SRC_FLASH) \
|
$(SRC_FLASH) \
|
||||||
$(SRC_SMARTCARD) \
|
$(SRC_SMARTCARD) \
|
||||||
$(SRC_FPC) \
|
$(SRC_FPC) \
|
||||||
|
$(SRC_HITAG) \
|
||||||
appmain.c \
|
appmain.c \
|
||||||
printf.c \
|
printf.c \
|
||||||
util.c \
|
util.c \
|
||||||
|
|
Loading…
Reference in a new issue