Don't compile outputselect.c if Bluetooth is disabled (#9356)
This commit is contained in:
parent
e7434c874b
commit
3b34858b77
3 changed files with 23 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue