summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/lufa.mk
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-06-17 21:43:20 +1000
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-08-29 14:30:02 -0700
commit3b34858b772cda36fa9988e4d45039ff7ff9146a (patch)
tree0b69f69ba13a4861a72a57617c1af9e53622ee32 /tmk_core/protocol/lufa.mk
parente7434c874bcd201906e26aa2ef55ddd3de9cd905 (diff)
Don't compile outputselect.c if Bluetooth is disabled (#9356)
Diffstat (limited to 'tmk_core/protocol/lufa.mk')
-rw-r--r--tmk_core/protocol/lufa.mk21
1 files changed, 12 insertions, 9 deletions
diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk
index d87802992e..9bc972c266 100644
--- a/tmk_core/protocol/lufa.mk
+++ b/tmk_core/protocol/lufa.mk
@@ -15,9 +15,8 @@ else
endif
LUFA_SRC = lufa.c \
- usb_descriptor.c \
- outputselect.c \
- $(LUFA_SRC_USB)
+ usb_descriptor.c \
+ $(LUFA_SRC_USB)
ifeq ($(strip $(MIDI_ENABLE)), yes)
include $(TMK_PATH)/protocol/midi.mk
@@ -25,23 +24,27 @@ endif
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
LUFA_SRC += $(LUFA_DIR)/bluetooth.c \
- $(TMK_DIR)/protocol/serial_uart.c
+ outputselect.c \
+ $(TMK_DIR)/protocol/serial_uart.c
endif
ifeq ($(strip $(BLUETOOTH)), AdafruitBLE)
- LUFA_SRC += spi_master.c
- LUFA_SRC += analog.c
- LUFA_SRC += $(LUFA_DIR)/adafruit_ble.cpp
+ LUFA_SRC += spi_master.c \
+ analog.c \
+ outputselect.c \
+ $(LUFA_DIR)/adafruit_ble.cpp
endif
ifeq ($(strip $(BLUETOOTH)), AdafruitEZKey)
LUFA_SRC += $(LUFA_DIR)/bluetooth.c \
- $(TMK_DIR)/protocol/serial_uart.c
+ outputselect.c \
+ $(TMK_DIR)/protocol/serial_uart.c
endif
ifeq ($(strip $(BLUETOOTH)), RN42)
LUFA_SRC += $(LUFA_DIR)/bluetooth.c \
- $(TMK_DIR)/protocol/serial_uart.c
+ outputselect.c \
+ $(TMK_DIR)/protocol/serial_uart.c
endif
ifeq ($(strip $(VIRTSER_ENABLE)), yes)