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