aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c285dabad..7c00ce2cc 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,12 @@ ifndef KEYBOARD
59 KEYBOARD=planck 59 KEYBOARD=planck
60endif 60endif
61 61
62MASTER ?= left
63ifdef master
64 MASTER = $(master)
65endif
66
67
62# converts things to keyboards/subproject 68# converts things to keyboards/subproject
63ifneq (,$(findstring /,$(KEYBOARD))) 69ifneq (,$(findstring /,$(KEYBOARD)))
64 TEMP:=$(KEYBOARD) 70 TEMP:=$(KEYBOARD)
@@ -198,10 +204,28 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
198endif 204endif
199 205
200ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) 206ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
201 OPT_DEFS += -DTAP_DANCE_ENABLE 207 OPT_DEFS += -DTAP_DANCE_ENABLE
202 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c 208 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
203endif 209endif
204 210
211ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
212 SERIAL_DIR = $(QUANTUM_DIR)/serial_link
213 SERIAL_PATH = $(QUANTUM_PATH)/serial_link
214 SERIAL_SRC = $(wildcard $(SERIAL_PATH)/protocol/*.c)
215 SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c)
216 SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
217 OPT_DEFS += -DSERIAL_LINK_ENABLE
218 VAPTH += $(SERIAL_PATH)
219endif
220
221ifeq ($(MASTER),right)
222 OPT_DEFS += -DMASTER_IS_ON_RIGHT
223else
224 ifneq ($(MASTER),left)
225$(error MASTER does not have a valid value(left/right))
226 endif
227endif
228
205# Optimize size but this may cause error "relocation truncated to fit" 229# Optimize size but this may cause error "relocation truncated to fit"
206#EXTRALDFLAGS = -Wl,--relax 230#EXTRALDFLAGS = -Wl,--relax
207 231