Skip to content
Snippets Groups Projects
Commit 25f61d97 authored by Simon Rose's avatar Simon Rose
Browse files

Automagical inclusion of headers from vendor libraries, in most cases

parent 08f93778
No related branches found
No related tags found
No related merge requests found
...@@ -659,6 +659,9 @@ USR_DBDFLAGS += $(DBDEXPANDPATH) ...@@ -659,6 +659,9 @@ USR_DBDFLAGS += $(DBDEXPANDPATH)
# Search all directories where sources or headers come from, plus existing os dependend subdirectories. # Search all directories where sources or headers come from, plus existing os dependend subdirectories.
SRC_INCLUDES = $(addprefix -I, $(wildcard $(foreach d,$(call uniq, $(filter-out /%,$(dir ${SRCS:%=../%} ${HDRS:%=../%}))), $d $(addprefix $d/, os/${OS_CLASS} $(POSIX_$(POSIX)) os/default)))) SRC_INCLUDES = $(addprefix -I, $(wildcard $(foreach d,$(call uniq, $(filter-out /%,$(dir ${SRCS:%=../%} ${HDRS:%=../%}))), $d $(addprefix $d/, os/${OS_CLASS} $(POSIX_$(POSIX)) os/default))))
# Look for includes from standard locations relative to vendor libraries
USR_INCLUDES += $(addprefix -I,$(wildcard $(patsubst %/lib/$(T_A)/,../%/include,$(call uniq,$(dir $(VLIBS))) $(patsubst %/lib/,../%/include,$(call uniq,$(dir $(VLIBS)))))))
# Different macro name for 3.14.8. # Different macro name for 3.14.8.
GENERIC_SRC_INCLUDES = $(SRC_INCLUDES) GENERIC_SRC_INCLUDES = $(SRC_INCLUDES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment