summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-07-06 13:29:46 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-07-06 15:06:53 +0200
commita7e3e4e652a2b9f172282f3876d74ee247a63105 (patch)
tree22bf63df25f5fed633df6e4a23e02617c26e6eff /Makefile
parentc6d671e54c249497b5c01ad9badaa50425f394f9 (diff)
downloadqmk_firmware-a7e3e4e652a2b9f172282f3876d74ee247a63105.tar.gz
qmk_firmware-a7e3e4e652a2b9f172282f3876d74ee247a63105.tar.xz
Add serial_link compilation to Infinity Ergodox
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c285dabad..79f9e8b42 100644
--- a/Makefile
+++ b/Makefile
@@ -198,10 +198,20 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
- OPT_DEFS += -DTAP_DANCE_ENABLE
+ OPT_DEFS += -DTAP_DANCE_ENABLE
SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
endif
+ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
+ SERIAL_DIR = $(QUANTUM_DIR)/serial_link
+ SERIAL_PATH = $(QUANTUM_PATH)/serial_link
+ SERIAL_SRC = $(wildcard $(SERIAL_PATH)/protocol/*.c)
+ SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c)
+ SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
+ OPT_DEFS += -DUSE_SERIAL_LINK
+ VAPTH += $(SERIAL_PATH)
+endif
+
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax