Help: add "official" include subdir in Makefile
Posted: Thu Feb 14, 2019 5:50 pm
Hi,
to resolve
#include <ft2build.h>
this code is correct or there is a *best* solution?
to resolve
#include <ft2build.h>
this code is correct or there is a *best* solution?
Code: Select all
#---------------------------------------------------------------------------------
# build a list of include paths
#---------------------------------------------------------------------------------
INCLUDEDIR := $(foreach dir,$(LIBDIRS),$(dir $(wildcard $(dir)/include/*/))) <------- discover include directories
export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
$(foreach dir,$(INCLUDEDIR),-I$(dir)) \ <------- add to include list
-I$(CURDIR)/include \
-I$(CURDIR)/$(BUILD) \
-I$(LIBOGC_INC)