From 388ce13c25a14a5eb9b3605d4eaafa0f524c28b0 Mon Sep 17 00:00:00 2001 From: "Brian P. Walenz" Date: Thu, 19 Jan 2023 14:37:45 -0500 Subject: [PATCH] Use -iquote instead of -I for local include files. --- src/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 631137b..739b95d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -259,8 +259,7 @@ define INCLUDE_SUBMAKEFILE $${OBJS}: SRC_CFLAGS := $${$${TGT}_CFLAGS} $${SRC_CFLAGS} $${OBJS}: SRC_CXXFLAGS := $${$${TGT}_CXXFLAGS} $${SRC_CXXFLAGS} $${OBJS}: SRC_DEFS := $$(addprefix -D,$${$${TGT}_DEFS} $${SRC_DEFS}) - $${OBJS}: SRC_INCDIRS := $$(addprefix -I,\ - $${$${TGT}_INCDIRS} $${SRC_INCDIRS}) + $${OBJS}: SRC_INCDIRS := $$(addprefix -iquote ,$${$${TGT}_INCDIRS} $${SRC_INCDIRS}) endif ifneq "$$(strip $${SUBMAKEFILES})" "" @@ -645,7 +644,7 @@ $(eval $(call INCLUDE_SUBMAKEFILE,main.mk)) # Perform post-processing on global variables as needed. DEFS := $(addprefix -D,${DEFS}) -INCDIRS := $(addprefix -I,$(call CANONICAL_PATH,${INCDIRS})) +INCDIRS := $(addprefix -iquote ,$(call CANONICAL_PATH,${INCDIRS})) # Define the "all" target (which simply builds all user-defined targets) as the # default goal.