summaryrefslogtreecommitdiff
path: root/firmware/Makefile.dfu
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/Makefile.dfu')
-rw-r--r--firmware/Makefile.dfu8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/Makefile.dfu b/firmware/Makefile.dfu
index 10c3616..47edebb 100644
--- a/firmware/Makefile.dfu
+++ b/firmware/Makefile.dfu
@@ -150,26 +150,30 @@ CDEFS = -D$(RUN_MODE) -D__MS_types__ -D__LIBRFID__
ifdef DEBUG
CDEFS += -DDEBUG
+ADEFS += -DDEBUG
endif
-ifdef OLIMEX
+ifeq ($(BOARD),OLIMEX)
CDEFS += -DOLIMEX
+ADEFS += -DOLIMEX
endif
ifeq ($(BOARD),PICC)
CDEFS += -DPICC
+ADEFS += -DPICC
endif
ifeq ($(BOARD),PCD)
SUBMDL = AT91SAM7S128
CDEFS += -DPCD
+ADEFS += -DPCD
endif
# Place -I options here
CINCS = -Iinclude -Isrc
# Place -D or -U options for ASM here
-ADEFS = -D$(RUN_MODE)
+ADEFS += -D$(RUN_MODE)
ifdef VECTOR_LOCATION
CDEFS += -D$(VECTOR_LOCATION)
personal git repositories of Harald Welte. Your mileage may vary