diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-08-16 17:51:53 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-08-16 17:51:53 -0400 |
commit | b3f638f491601d4a849995fb4fa1181c9ff4341a (patch) | |
tree | 2faf8bda68233a28abba86429c948d6fd841ef03 /keyboard/atomic/Makefile | |
parent | 07d090db8ba5a3be15ec6c8ecf9e30815a48b0c0 (diff) |
ok
Diffstat (limited to 'keyboard/atomic/Makefile')
-rw-r--r-- | keyboard/atomic/Makefile | 49 |
1 files changed, 40 insertions, 9 deletions
diff --git a/keyboard/atomic/Makefile b/keyboard/atomic/Makefile index c4e0cb45d7..12351b990b 100644 --- a/keyboard/atomic/Makefile +++ b/keyboard/atomic/Makefile @@ -39,7 +39,7 @@ #---------------------------------------------------------------------------- # Target file name (without extension). -TARGET = atomic_lufa +TARGET = planck_lufa # Directory common source filess exist TOP_DIR = ../.. @@ -47,19 +47,49 @@ 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 \ + led.c \ + backlight.c ifdef KEYMAP - SRC := keymap_$(KEYMAP).c $(SRC) + SRC := common_keymaps/keymap_$(KEYMAP).c $(SRC) else - SRC := keymap_vlad.c $(SRC) + SRC := common_keymaps/keymap_jack.c $(SRC) endif -CONFIG_H = config.h +ifdef MATRIX + SRC := matrix_$(MATRIX).c $(SRC) +else + SRC := matrix_pcb.c $(SRC) +endif + +else + +SRC = extended_keymap_common.c \ + analog.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 + +ifdef MATRIX + SRC := matrix_$(MATRIX).c $(SRC) +else + SRC := matrix_pcb.c $(SRC) +endif +endif + +CONFIG_H = config.h # MCU name #MCU = at90usb1287 @@ -119,9 +149,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 |