mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-22 01:23:23 +00:00
19 lines
426 B
Makefile
19 lines
426 B
Makefile
|
ifneq ($(strip $(QWIIC_ENABLE)),)
|
||
|
COMMON_VPATH += $(DRIVER_PATH)/qwiic
|
||
|
OPT_DEFS += -DQWIIC_ENABLE
|
||
|
SRC += qwiic.c
|
||
|
ifeq ($(filter "i2c_master.c", $(SRC)),)
|
||
|
SRC += i2c_master.c
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),)
|
||
|
OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
|
||
|
SRC += joystiic.c
|
||
|
endif
|
||
|
|
||
|
ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),)
|
||
|
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
|
||
|
SRC += micro_oled.c
|
||
|
endif
|