summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-10-08 23:40:46 -0500
committerGitHub <noreply@github.com>2017-10-08 23:40:46 -0500
commitb60f7cb66b1bcd293babbd95e56d26d61f309ee0 (patch)
treebe0dadd4cb3a6c36e27233836a6f104359d49949 /Makefile
parent3776a9fb4f0531535b0b5879dab7b3b6bd231736 (diff)
parentb0d49dbbfbfcf39c2a9f88572437b6af77c8f709 (diff)
Merge pull request #388 from yenatch/scaninc
[dont merge] scaninc: read C includes and add -I
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ef851b1c..9aca31899 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ $1_DATA_ASM_OBJS := $$(DATA_ASM_SRCS:%.s=build/$1/%.o)
ifeq ($$(NODEP),)
build/$1/src/%.o: c_path = $$(*D)/$$(*F).c
-build/$1/src/%.o: c_dep = $$(shell $$(SCANINC) $$(wildcard $$(c_path:build/$1/=)))
+build/$1/src/%.o: c_dep = $$(shell $$(SCANINC) -I include $$(wildcard $$(c_path:build/$1/=)))
build/$1/asm/%.o: asm_dep = $$(shell $$(SCANINC) asm/$$(*F).s)
build/$1/data/%.o: asm_dep = $$(shell $$(SCANINC) data/$$(*F).s)
endif