]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - converter/usb_usb/Makefile
usb_usb: Add SpaceFn and hasu keymap
[tmk_firmware.git] / converter / usb_usb / Makefile
index 4565ca508a95aefa256b2e86c2d624cf63f52515..d6867bb002644348a74188eb82d86be225cd1e77 100644 (file)
@@ -99,16 +99,22 @@ CONSOLE_ENABLE = yes        # Console for debug
 #   Teensy halfKay   512
 #   Atmel DFU loader 4096
 #   LUFA bootloader  4096
-#OPT_DEFS += -DBOOT_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
 
 
@@ -116,12 +122,11 @@ CONFIG_H = config.h
 # Search Path
 VPATH += $(TARGET_DIR)
 VPATH += $(TOP_DIR)
-#VPATH += $(TOP_DIR)/common
 
 
 
 # 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)