mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 00:09:46 +01:00
make: introduce makefile to optimize driver with disp/touch_dev build
This commit is contained in:
parent
b4267fbd5e
commit
c7a27fb073
12
makefiles/driver_with_disp_dev.mk
Normal file
12
makefiles/driver_with_disp_dev.mk
Normal 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
|
12
makefiles/driver_with_touch_dev.mk
Normal file
12
makefiles/driver_with_touch_dev.mk
Normal 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
|
Loading…
Reference in New Issue
Block a user