summaryrefslogtreecommitdiff
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorDamien <Dbroqua@users.noreply.github.com>2016-12-09 19:44:03 +0100
committerGitHub <noreply@github.com>2016-12-09 19:44:03 +0100
commit13c4080a1d77cb1dfdf48df8a42e78b9dc483912 (patch)
tree66fd988d98a32e1437fbc6cb80bee03c056722a7 /build_keyboard.mk
parenta849bdc5811b2bb69df8e3b0948c8e81c0dfa9d4 (diff)
parent985a091a739c99736d5b17de5161831488dbc219 (diff)
Merge pull request #13 from jackhumbert/master
Merged from qmk
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 61aebf3935..ce505de126 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -131,6 +131,14 @@ ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
+ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
+ OPT_DEFS += -DAPI_SYSEX_ENABLE
+ SRC += $(QUANTUM_DIR)/api/api_sysex.c
+ OPT_DEFS += -DAPI_ENABLE
+ SRC += $(QUANTUM_DIR)/api.c
+ MIDI_ENABLE=yes
+endif
+
ifeq ($(strip $(MIDI_ENABLE)), yes)
OPT_DEFS += -DMIDI_ENABLE
SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c
@@ -174,6 +182,12 @@ ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
endif
+ifeq ($(strip $(PRINTING_ENABLE)), yes)
+ OPT_DEFS += -DPRINTING_ENABLE
+ SRC += $(QUANTUM_DIR)/process_keycode/process_printer.c
+ SRC += $(TMK_DIR)/protocol/serial_uart.c
+endif
+
ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
OPT_DEFS += $(SERIAL_DEFS)
@@ -199,6 +213,7 @@ endif
VPATH += $(KEYBOARD_PATH)
VPATH += $(COMMON_VPATH)
+include $(TMK_PATH)/protocol.mk
include $(TMK_PATH)/common.mk
SRC += $(TMK_COMMON_SRC)