2014-06-15 10:56:17 +06:00
|
|
|
OBJECTS += \
|
2014-06-19 13:13:35 +06:00
|
|
|
$(OBJDIR)/common/action.o \
|
|
|
|
$(OBJDIR)/common/action_tapping.o \
|
|
|
|
$(OBJDIR)/common/action_macro.o \
|
|
|
|
$(OBJDIR)/common/action_layer.o \
|
|
|
|
$(OBJDIR)/common/action_util.o \
|
|
|
|
$(OBJDIR)/common/host.o \
|
|
|
|
$(OBJDIR)/common/keymap.o \
|
|
|
|
$(OBJDIR)/common/keyboard.o \
|
|
|
|
$(OBJDIR)/common/util.o \
|
|
|
|
$(OBJDIR)/common/mbed/suspend.o \
|
|
|
|
$(OBJDIR)/common/mbed/timer.o \
|
|
|
|
$(OBJDIR)/common/mbed/xprintf.o \
|
|
|
|
$(OBJDIR)/common/mbed/bootloader.o \
|
2014-06-15 10:56:17 +06:00
|
|
|
|
|
|
|
INCLUDE_PATHS += \
|
2014-06-19 13:13:35 +06:00
|
|
|
-I$(TMK_DIR)/common \
|
|
|
|
-I$(TMK_DIR)/protocol
|
2014-06-16 08:12:45 +06:00
|
|
|
|
2014-06-17 19:41:14 +06:00
|
|
|
CC_FLAGS += -include $(CONFIG_H)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Option modules
|
|
|
|
ifdef BOOTMAGIC_ENABLE
|
|
|
|
$(error Not Supported)
|
2014-06-19 13:13:35 +06:00
|
|
|
OBJECTS += $(OBJDIR)/common/bootmagic.o
|
|
|
|
OBJECTS += $(OBJDIR)/common/mbed/eeprom.o
|
2014-06-17 19:41:14 +06:00
|
|
|
OPT_DEFS += -DBOOTMAGIC_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOUSEKEY_ENABLE
|
2014-06-19 13:13:35 +06:00
|
|
|
OBJECTS += $(OBJDIR)/common/mousekey.o
|
2014-06-17 19:41:14 +06:00
|
|
|
OPT_DEFS += -DMOUSEKEY_ENABLE
|
|
|
|
OPT_DEFS += -DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRAKEY_ENABLE
|
|
|
|
$(error Not Supported)
|
|
|
|
OPT_DEFS += -DEXTRAKEY_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONSOLE_ENABLE
|
|
|
|
$(error Not Supported)
|
|
|
|
OPT_DEFS += -DCONSOLE_ENABLE
|
|
|
|
else
|
|
|
|
OPT_DEFS += -DNO_PRINT
|
|
|
|
OPT_DEFS += -DNO_DEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef COMMAND_ENABLE
|
|
|
|
$(error Not Supported)
|
2014-06-19 13:13:35 +06:00
|
|
|
SRC += common/command.c
|
2014-06-17 19:41:14 +06:00
|
|
|
OPT_DEFS += -DCOMMAND_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NKRO_ENABLE
|
|
|
|
$(error Not Supported)
|
|
|
|
OPT_DEFS += -DNKRO_ENABLE
|
|
|
|
endif
|
2014-06-16 08:12:45 +06:00
|
|
|
|
2014-06-17 19:41:14 +06:00
|
|
|
ifdef SLEEP_LED_ENABLE
|
|
|
|
$(error Not Supported)
|
2014-06-19 13:13:35 +06:00
|
|
|
SRC += common/sleep_led.c
|
2014-06-17 19:41:14 +06:00
|
|
|
OPT_DEFS += -DSLEEP_LED_ENABLE
|
|
|
|
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
|
|
|
|
endif
|
2014-06-16 08:12:45 +06:00
|
|
|
|
2014-06-17 19:41:14 +06:00
|
|
|
ifdef BACKLIGHT_ENABLE
|
|
|
|
$(error Not Supported)
|
2014-06-19 13:13:35 +06:00
|
|
|
SRC += common/backlight.c
|
2014-06-17 19:41:14 +06:00
|
|
|
OPT_DEFS += -DBACKLIGHT_ENABLE
|
|
|
|
endif
|
2014-06-16 08:12:45 +06:00
|
|
|
|
2014-06-17 19:41:14 +06:00
|
|
|
ifdef KEYMAP_SECTION_ENABLE
|
|
|
|
$(error Not Supported)
|
|
|
|
OPT_DEFS += -DKEYMAP_SECTION_ENABLE
|
|
|
|
EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
|
|
|
|
endif
|