Skip to content

Commit

Permalink
Use -iquote instead of -I for local include files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Jan 19, 2023
1 parent 33d6ab0 commit 388ce13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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})" ""
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 388ce13

Please sign in to comment.