mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Filter out src from SUBDIRS so we don't link lib.o in the root dir
This commit is contained in:
parent
9f2731a900
commit
bd8f005413
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user