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)