diff options
Diffstat (limited to 'drivers/qwiic/qwiic.mk')
| -rw-r--r-- | drivers/qwiic/qwiic.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/qwiic/qwiic.mk b/drivers/qwiic/qwiic.mk new file mode 100644 index 000000000..4ae2d78e3 --- /dev/null +++ b/drivers/qwiic/qwiic.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | ifneq ($(strip $(QWIIC_ENABLE)),) | ||
| 2 | COMMON_VPATH += $(DRIVER_PATH)/qwiic | ||
| 3 | OPT_DEFS += -DQWIIC_ENABLE | ||
| 4 | SRC += qwiic.c | ||
| 5 | ifeq ($(filter "i2c_master.c", $(SRC)),) | ||
| 6 | SRC += i2c_master.c | ||
| 7 | endif | ||
| 8 | endif | ||
| 9 | |||
| 10 | ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),) | ||
| 11 | OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE | ||
| 12 | SRC += joystiic.c | ||
| 13 | endif | ||
| 14 | |||
| 15 | ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),) | ||
| 16 | OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE | ||
| 17 | SRC += micro_oled.c | ||
| 18 | endif | ||
