X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=converter%2Fusb_usb%2FMakefile;h=d6867bb002644348a74188eb82d86be225cd1e77;hb=a0d6bb1818b90f341b2a5daaea3652fe19cd4184;hp=41a64e46433e0ea96fc9bd5b3ff961f8e65636a4;hpb=dc79a8521946a3a2e5b86945b8043b87a8b8d78c;p=tmk_firmware.git diff --git a/converter/usb_usb/Makefile b/converter/usb_usb/Makefile index 41a64e4..d6867bb 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 += -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 @@ -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)