SRC := $(KEYMAP_FILE) $(SRC)
+ifeq ($(BACKLIGHT_ENABLE), yes)
+ SRC := backlight.c $(SRC)
+endif
+
CONFIG_H = config.h
# MCU name
# software delays.
F_CPU = 16000000
-
#
# LUFA specific
#
# 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
ifeq ($(BACKLIGHT_ENABLE), yes)
SRC += $(COMMON_DIR)/backlight.c
+ SRC += $(COMMON_DIR)/avr/eeconfig.c
OPT_DEFS += -DBACKLIGHT_ENABLE
endif