2015-01-02 04:16:40 -08:00
|
|
|
PROJECT = infinity
|
|
|
|
|
2015-04-09 09:53:24 -07:00
|
|
|
TMK_DIR = ../../tmk_core
|
2015-04-24 00:27:40 -07:00
|
|
|
MBED_DIR = $(TMK_DIR)/tool/mbed/mbed-sdk
|
2015-01-02 04:16:40 -08:00
|
|
|
|
|
|
|
#VPATH += $(MBED_DIR):$(TMK_DIR)
|
|
|
|
vpath %.s .:$(MBED_DIR):$(TMK_DIR)
|
|
|
|
vpath %.c .:$(MBED_DIR):$(TMK_DIR)
|
|
|
|
vpath %.cpp .:$(MBED_DIR):$(TMK_DIR)
|
|
|
|
|
|
|
|
OBJDIR = ./build
|
|
|
|
|
|
|
|
OBJECTS = \
|
2015-01-04 00:03:47 -08:00
|
|
|
$(OBJDIR)/matrix.o \
|
|
|
|
$(OBJDIR)/keymap_common.o \
|
|
|
|
$(OBJDIR)/led.o \
|
2015-01-02 04:16:40 -08:00
|
|
|
$(OBJDIR)/main.o
|
|
|
|
|
2015-03-04 17:38:18 -08:00
|
|
|
ifdef KEYMAP
|
|
|
|
OBJECTS := $(OBJDIR)/keymap_$(KEYMAP).o $(OBJECTS)
|
|
|
|
else
|
|
|
|
OBJECTS := $(OBJDIR)/keymap.o $(OBJECTS)
|
|
|
|
endif
|
|
|
|
|
2015-01-02 04:16:40 -08:00
|
|
|
CONFIG_H = config.h
|
|
|
|
|
|
|
|
INCLUDE_PATHS = -I.
|
|
|
|
|
|
|
|
|
|
|
|
# Build Options
|
|
|
|
# Comment out to disable
|
|
|
|
#BOOTMAGIC_ENABLE = yes
|
|
|
|
#MOUSEKEY_ENABLE = yes
|
|
|
|
|
|
|
|
|
2015-01-03 10:27:24 -08:00
|
|
|
include mbed-infinity.mk
|
2015-01-02 04:16:40 -08:00
|
|
|
include $(TMK_DIR)/tool/mbed/mbed.mk
|
|
|
|
include $(TMK_DIR)/tool/mbed/common.mk
|
|
|
|
include $(TMK_DIR)/tool/mbed/gcc.mk
|
2015-01-03 10:27:24 -08:00
|
|
|
|
2015-01-04 00:03:47 -08:00
|
|
|
program: $(OBJDIR)/$(PROJECT).bin
|
2015-01-03 10:27:24 -08:00
|
|
|
dfu-util -D $(OBJDIR)/$(PROJECT).bin
|