summaryrefslogtreecommitdiff
path: root/converter/usb_usb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'converter/usb_usb/Makefile')
-rw-r--r--converter/usb_usb/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/converter/usb_usb/Makefile b/converter/usb_usb/Makefile
index 13f77ca9b7..d6867bb002 100644
--- a/converter/usb_usb/Makefile
+++ b/converter/usb_usb/Makefile
@@ -99,16 +99,22 @@ CONSOLE_ENABLE = yes # Console for debug
# Teensy halfKay 512
# Atmel DFU loader 4096
# LUFA bootloader 4096
-#OPT_DEFS += -DBOOTLOADER_SIZE=4096
+OPT_DEFS += -DBOOTLOADER_SIZE=4096
SRC = \
- keymap.c \
+ keymap_common.c \
matrix.c \
led.c \
main.cpp
+ifdef KEYMAP
+ SRC := keymap_$(KEYMAP).c $(SRC)
+else
+ SRC := keymap.c $(SRC)
+endif
+
CONFIG_H = config.h
@@ -120,7 +126,7 @@ VPATH += $(TOP_DIR)
# program Leonardo
-PROGRAM_CMD = avrdude -p$(MCU) -cavr109 -P$(DEV) -b57600 -Uflash:w:$(TARGET).hex
+PROGRAM_CMD = avrdude -p$(MCU) -cavr109 -b57600 -Uflash:w:$(TARGET).hex -P$(DEV)