1
0
tmk_keyboard/tool/mbed/common.mk

80 lines
1.7 KiB
Makefile
Raw Normal View History

2014-06-15 04:56:17 +00:00
OBJECTS += \
2014-06-19 07:13:35 +00: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 04:56:17 +00:00
INCLUDE_PATHS += \
2014-06-19 07:13:35 +00:00
-I$(TMK_DIR)/common \
-I$(TMK_DIR)/protocol
2014-06-16 02:12:45 +00:00
2014-06-17 13:41:14 +00:00
CC_FLAGS += -include $(CONFIG_H)
# Option modules
ifdef BOOTMAGIC_ENABLE
$(error Not Supported)
2014-06-19 07:13:35 +00:00
OBJECTS += $(OBJDIR)/common/bootmagic.o
OBJECTS += $(OBJDIR)/common/mbed/eeprom.o
2014-06-17 13:41:14 +00:00
OPT_DEFS += -DBOOTMAGIC_ENABLE
endif
ifdef MOUSEKEY_ENABLE
2014-06-19 07:13:35 +00:00
OBJECTS += $(OBJDIR)/common/mousekey.o
2014-06-17 13:41:14 +00: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 07:13:35 +00:00
SRC += common/command.c
2014-06-17 13:41:14 +00:00
OPT_DEFS += -DCOMMAND_ENABLE
endif
ifdef NKRO_ENABLE
$(error Not Supported)
OPT_DEFS += -DNKRO_ENABLE
endif
2014-06-16 02:12:45 +00:00
2014-06-17 13:41:14 +00:00
ifdef SLEEP_LED_ENABLE
$(error Not Supported)
2014-06-19 07:13:35 +00:00
SRC += common/sleep_led.c
2014-06-17 13:41:14 +00:00
OPT_DEFS += -DSLEEP_LED_ENABLE
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
endif
2014-06-16 02:12:45 +00:00
2014-06-17 13:41:14 +00:00
ifdef BACKLIGHT_ENABLE
$(error Not Supported)
2014-06-19 07:13:35 +00:00
SRC += common/backlight.c
2014-06-17 13:41:14 +00:00
OPT_DEFS += -DBACKLIGHT_ENABLE
endif
2014-06-16 02:12:45 +00:00
2014-06-17 13:41:14 +00:00
ifdef KEYMAP_SECTION_ENABLE
$(error Not Supported)
OPT_DEFS += -DKEYMAP_SECTION_ENABLE
EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
endif