summaryrefslogtreecommitdiffstats
path: root/drivers/qwiic/qwiic.mk
blob: 4ae2d78e3e7b888348f71a8323ca82beaa5645ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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