1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 01:29:46 +01:00
RIOT/makefiles/driver_with_touch_dev.mk
2023-08-30 18:53:44 +02:00

13 lines
385 B
Makefile

MODULE ?= $(shell basename $(CURDIR))
TOUCH_DEV_INTERFACE ?= $(MODULE)_touch_dev.c
# by default include all .c files except <module>_touch_dev.c
SRC = $(filter-out $(TOUCH_DEV_INTERFACE),$(wildcard *.c))
# only include <module>_touch_dev.c if touch_dev module is used
ifneq (,$(filter touch_dev,$(USEMODULE)))
SRC += $(TOUCH_DEV_INTERFACE)
endif
include $(RIOTBASE)/Makefile.base