1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make: introduce makefile to optimize driver with disp/touch_dev build

This commit is contained in:
Alexandre Abadie 2022-01-05 09:24:44 +01:00
parent b4267fbd5e
commit c7a27fb073
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
MODULE ?= $(shell basename $(CURDIR))
DISP_DEV_INTERFACE ?= $(MODULE)_disp_dev.c
# by default include all .c files except <module>_disp_dev.c
SRC = $(filter-out $(DISP_DEV_INTERFACE),$(wildcard *.c))
# only include <module>_disp_dev.c if saul module is used
ifneq (,$(filter disp_dev,$(USEMODULE)))
SRC += $(DISP_DEV_INTERFACE)
endif
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,12 @@
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 saul module is used
ifneq (,$(filter touch_dev,$(USEMODULE)))
SRC += $(TOUCH_DEV_INTERFACE)
endif
include $(RIOTBASE)/Makefile.base