From 739cd03234d8d5189db6d85b709eb6e969e9c555 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Tue, 29 Oct 2013 16:26:42 +0100 Subject: [PATCH] do not overwrite SRC in Makefile.base --- Makefile.base | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.base b/Makefile.base index 10b321c7de..bfd7c6d448 100644 --- a/Makefile.base +++ b/Makefile.base @@ -3,7 +3,9 @@ ASSMSRC = $(wildcard *.S) ASMOBJ = $(ASMSRC:%.s=$(BINDIR)%.o) ASMOBJ += $(ASSMSRC:%.S=$(BINDIR)%.o) -SRC = $(wildcard *.c) +ifeq ($(strip $(SRC)),) + SRC = $(wildcard *.c) +endif OBJ = $(SRC:%.c=$(BINDIR)%.o) DEP = $(SRC:%.c=$(BINDIR)%.d)