1
0
tmk_keyboard/keyboard/infinity/Makefile

39 lines
680 B
Makefile
Raw Permalink Normal View History

2015-01-02 12:16:40 +00:00
PROJECT = infinity
2015-04-09 16:53:24 +00:00
TMK_DIR = ../../tmk_core
2015-04-24 07:27:40 +00:00
MBED_DIR = $(TMK_DIR)/tool/mbed/mbed-sdk
2015-01-02 12:16:40 +00:00
2016-02-19 05:40:33 +00:00
VPATH += $(TMK_DIR):$(MBED_DIR)
2015-01-02 12:16:40 +00:00
OBJDIR = ./build
OBJECTS = \
$(OBJDIR)/matrix.o \
$(OBJDIR)/led.o \
2015-01-02 12:16:40 +00:00
$(OBJDIR)/main.o
ifdef KEYMAP
OBJECTS := $(OBJDIR)/keymap_$(KEYMAP).o $(OBJECTS)
else
OBJECTS := $(OBJDIR)/keymap.o $(OBJECTS)
endif
2015-01-02 12:16:40 +00:00
CONFIG_H = config.h
INCLUDE_PATHS = -I.
# Build Options
# Comment out to disable
#BOOTMAGIC_ENABLE = yes
#MOUSEKEY_ENABLE = yes
2016-02-19 05:40:33 +00:00
include $(TMK_DIR)/tool/mbed/common.mk
include mbed-infinity.mk
2015-01-02 12:16:40 +00:00
include $(TMK_DIR)/tool/mbed/mbed.mk
include $(TMK_DIR)/tool/mbed/gcc.mk
program: $(OBJDIR)/$(PROJECT).bin
dfu-util -D $(OBJDIR)/$(PROJECT).bin