mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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
|
ifdef SUBDIRS
|
||||||
# Apparently wildcard won't expand *.o files so check if there are any *.c
|
# 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.
|
# 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
|
endif
|
||||||
ifneq ($(subobjs),)
|
ifneq ($(subobjs),)
|
||||||
OBJS += $(subobjs)
|
OBJS += $(subobjs)
|
||||||
|
Loading…
Reference in New Issue
Block a user