From c442cbcc2322dac3f237965c3cae99e8788c7466 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 22 Mar 2017 11:04:41 +0100 Subject: [PATCH] make: Makefile.base: don't collect wildcard sources if NO_AUTO_SRC is nonempty --- Makefile.base | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.base b/Makefile.base index 8bbe3e39ad..06f4563251 100644 --- a/Makefile.base +++ b/Makefile.base @@ -22,16 +22,16 @@ ${DIRS:%=ALL--%}: ${DIRS:%=CLEAN--%}: $(QQ)"$(MAKE)" -C ${@:CLEAN--%=%} clean -ifeq ($(strip $(SRC)),) +ifeq ($(strip $(SRC))$(NO_AUTO_SRC),) SRC := $(filter-out $(SRC_NOLTO), $(wildcard *.c)) endif -ifeq ($(strip $(SRCXX)),) +ifeq ($(strip $(SRCXX))$(NO_AUTO_SRC),) SRCXX := $(wildcard *.cpp) endif -ifeq ($(strip $(ASMSRC)),) +ifeq ($(strip $(ASMSRC))$(NO_AUTO_SRC),) ASMSRC := $(wildcard *.s) endif -ifeq ($(strip $(ASSMSRC)),) +ifeq ($(strip $(ASSMSRC))$(NO_AUTO_SRC),) ASSMSRC := $(wildcard *.S) endif