summaryrefslogtreecommitdiff
path: root/keyboard/planck/Makefile
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-04-14 23:53:35 -0400
committerJack Humbert <jack.humb@gmail.com>2016-04-14 23:53:35 -0400
commit43a4ffc25971b2aea94b65ca1db66371e653ec5f (patch)
tree08d1b15e8370574c8893b711d007e6f888a5f103 /keyboard/planck/Makefile
parent2597fb7c508cf36704291cd48b2c752dd21f2b0d (diff)
bootmagic somehow not getting enabled, so adding eeconfig to backlight src include cond
Diffstat (limited to 'keyboard/planck/Makefile')
-rw-r--r--keyboard/planck/Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile
index dc6e46df2c..693e9c8aa5 100644
--- a/keyboard/planck/Makefile
+++ b/keyboard/planck/Makefile
@@ -107,6 +107,10 @@ endif
SRC := $(KEYMAP_FILE) $(SRC)
+ifeq ($(BACKLIGHT_ENABLE), yes)
+ SRC := backlight.c $(SRC)
+endif
+
CONFIG_H = config.h
# MCU name
@@ -126,7 +130,6 @@ MCU = atmega32u4
# software delays.
F_CPU = 16000000
-
#
# LUFA specific
#
@@ -158,12 +161,6 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
# USBaspLoader 2048
OPT_DEFS += -DBOOTLOADER_SIZE=4096
-
-ifeq ($(BACKLIGHT_ENABLE), yes)
- SRC += backlight.c
-endif
-
-
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax