diff --git a/makefiles/driver_with_disp_dev.mk b/makefiles/driver_with_disp_dev.mk new file mode 100644 index 0000000000..45708472ba --- /dev/null +++ b/makefiles/driver_with_disp_dev.mk @@ -0,0 +1,12 @@ +MODULE ?= $(shell basename $(CURDIR)) +DISP_DEV_INTERFACE ?= $(MODULE)_disp_dev.c + +# by default include all .c files except _disp_dev.c +SRC = $(filter-out $(DISP_DEV_INTERFACE),$(wildcard *.c)) + +# only include _disp_dev.c if saul module is used +ifneq (,$(filter disp_dev,$(USEMODULE))) + SRC += $(DISP_DEV_INTERFACE) +endif + +include $(RIOTBASE)/Makefile.base diff --git a/makefiles/driver_with_touch_dev.mk b/makefiles/driver_with_touch_dev.mk new file mode 100644 index 0000000000..2b6afdd8c1 --- /dev/null +++ b/makefiles/driver_with_touch_dev.mk @@ -0,0 +1,12 @@ +MODULE ?= $(shell basename $(CURDIR)) +TOUCH_DEV_INTERFACE ?= $(MODULE)_touch_dev.c + +# by default include all .c files except _touch_dev.c +SRC = $(filter-out $(TOUCH_DEV_INTERFACE),$(wildcard *.c)) + +# only include _touch_dev.c if saul module is used +ifneq (,$(filter touch_dev,$(USEMODULE))) + SRC += $(TOUCH_DEV_INTERFACE) +endif + +include $(RIOTBASE)/Makefile.base