From 02fbc1f812c44ee4e22e341887c4427a55861251 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sun, 20 Apr 2014 19:22:58 -0700 Subject: [PATCH] [make] fix MODULE_INCLUDES to actually work -wasn't properly being prefixed with -I and -wasn't being erased after usage --- make/module.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/module.mk b/make/module.mk index 4f763b9c..89f23232 100644 --- a/make/module.mk +++ b/make/module.mk @@ -11,6 +11,7 @@ # MODULE_CFLAGS : CFLAGS local to this module # MODULE_CPPFLAGS : CPPFLAGS local to this module # MODULE_ASMFLAGS : ASMFLAGS local to this module +# MODULE_INCLUDES : include directories local to this module # MODULE_SRCDEPS : extra dependencies that all of this module's files depend on # MODULE_EXTRA_OBJS : extra .o files that should be linked with the module @@ -70,6 +71,8 @@ MODULE_COMPILEFLAGS += --include $(MODULE_CONFIG) MODULE_SRCDEPS += $(MODULE_CONFIG) +MODULE_INCLUDES := $(addprefix -I,$(MODULE_INCLUDES)) + # include the rules to compile the module's object files include make/compile.mk @@ -106,6 +109,7 @@ MODULE_CFLAGS := MODULE_CPPFLAGS := MODULE_ASMFLAGS := MODULE_SRCDEPS := +MODULE_INCLUDES := MODULE_EXTRA_OBJS := MODULE_CONFIG := MODULE_OBJECT :=