diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
| @@ -59,6 +59,12 @@ ifndef KEYBOARD | |||
| 59 | KEYBOARD=planck | 59 | KEYBOARD=planck |
| 60 | endif | 60 | endif |
| 61 | 61 | ||
| 62 | MASTER ?= left | ||
| 63 | ifdef master | ||
| 64 | MASTER = $(master) | ||
| 65 | endif | ||
| 66 | |||
| 67 | |||
| 62 | # converts things to keyboards/subproject | 68 | # converts things to keyboards/subproject |
| 63 | ifneq (,$(findstring /,$(KEYBOARD))) | 69 | ifneq (,$(findstring /,$(KEYBOARD))) |
| 64 | TEMP:=$(KEYBOARD) | 70 | TEMP:=$(KEYBOARD) |
| @@ -198,10 +204,28 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
| 198 | endif | 204 | endif |
| 199 | 205 | ||
| 200 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | 206 | ifeq ($(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 |
| 203 | endif | 209 | endif |
| 204 | 210 | ||
| 211 | ifeq ($(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) | ||
| 219 | endif | ||
| 220 | |||
| 221 | ifeq ($(MASTER),right) | ||
| 222 | OPT_DEFS += -DMASTER_IS_ON_RIGHT | ||
| 223 | else | ||
| 224 | ifneq ($(MASTER),left) | ||
| 225 | $(error MASTER does not have a valid value(left/right)) | ||
| 226 | endif | ||
| 227 | endif | ||
| 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 | ||
