On 07/04/2017 14:20, Andrew Jones wrote: >> -LIBFDT_objdir = lib/libfdt >> -LIBFDT_srcdir = lib/libfdt >> +LIBFDT_objdir = $(SRCDIR)/lib/libfdt >> +LIBFDT_srcdir = $(SRCDIR)/lib/libfdt >> LIBFDT_archive = $(LIBFDT_objdir)/libfdt.a >> LIBFDT_include = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_INCLUDES)) >> LIBFDT_version = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_VERSION)) > Can't we just do VPATH += $LIBFDT_srcdir instead? That would search for every file in the lib/libfdt subdirectory of the source directory, while here the desired prefix is just $(SRCDIR). Paolo