From bd8f005413e39044125bdf4f64d85e067e99ed65 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 28 Sep 2005 12:11:12 +0200 Subject: [PATCH] Filter out src from SUBDIRS so we don't link lib.o in the root dir --- Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.lib b/Makefile.lib index 22fa09c1..a692e074 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -67,7 +67,8 @@ endif ifdef SUBDIRS # Apparently wildcard won't expand *.o files so check if there are any *.c # files and use that to magically add the lib.o file of the subdirectory. -subobjs := $(strip $(foreach subdir,$(sort $(SUBDIRS)),$(if $(wildcard $(subdir)/*.c),$(subdir)/lib.o))) +subobjs := $(strip $(foreach subdir,$(sort $(filter-out src,$(SUBDIRS))), \ + $(if $(wildcard $(subdir)/*.c),$(subdir)/lib.o))) endif ifneq ($(subobjs),) OBJS += $(subobjs) -- 2.11.4.GIT