diff options
author | cr3473 <joe@createtank.com> | 2015-05-27 08:29:48 -0700 |
---|---|---|
committer | cr3473 <joe@createtank.com> | 2015-05-27 08:29:48 -0700 |
commit | b36d1a87da2395fd5429e2817409c76f065387b5 (patch) | |
tree | 1e4a76822deaf92db83896548fa3c3003f7640f3 /keyboard/planck/Makefile | |
parent | a4cf9ae660b16d1952738139ba8f788368b73eff (diff) | |
parent | d61d1f5ca3a7dcccc495ac6688e0632c601c0623 (diff) | |
download | qmk_firmware-b36d1a87da2395fd5429e2817409c76f065387b5.tar.gz qmk_firmware-b36d1a87da2395fd5429e2817409c76f065387b5.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboard/planck/Makefile')
-rw-r--r-- | keyboard/planck/Makefile | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile index c456cb51b3..964e6832ea 100644 --- a/keyboard/planck/Makefile +++ b/keyboard/planck/Makefile @@ -47,15 +47,35 @@ TOP_DIR = ../.. # Directory keyboard dependent files exist TARGET_DIR = . -# project specific files -SRC = keymap_common.c \ - matrix.c \ - led.c + + +# # project specific files +ifdef COMMON + + SRC = keymap_common.c \ + matrix_pcb.c \ + led.c \ + backlight.c ifdef KEYMAP - SRC := keymap_$(KEYMAP).c $(SRC) + SRC := common_keymaps/keymap_$(KEYMAP).c $(SRC) else - SRC := keymap_jack.c $(SRC) + SRC := common_keymaps/keymap_jack.c $(SRC) +endif + +else + +SRC = extended_keymap_common.c \ + matrix_pcb.c \ + led.c \ + backlight.c + +ifdef KEYMAP + SRC := extended_keymaps/extended_keymap_$(KEYMAP).c $(SRC) +else + SRC := extended_keymaps/extended_keymap_default.c $(SRC) +endif + endif CONFIG_H = config.h @@ -118,9 +138,10 @@ MOUSEKEY_ENABLE = yes # Mouse keys(+4700) EXTRAKEY_ENABLE = yes # Audio control and System control(+450) CONSOLE_ENABLE = yes # Console for debug(+400) COMMAND_ENABLE = yes # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA - +BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality # Optimize size but this may cause error "relocation truncated to fit" #EXTRALDFLAGS = -Wl,--relax |