From fbaf2406b7c3932bcb1888a302a72b60f9409019 Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 13 Oct 2016 18:21:50 -0700 Subject: [PATCH] fixt --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 504d0bb..01aa4ab 100644 --- a/Makefile +++ b/Makefile @@ -194,7 +194,7 @@ endef define SRC_LANG_RULE = $(if $($1),,$(eval $1 := t)\ $(eval MOD := $(filter $(MODULES),$(firstword $(subst /, ,$(subst $(SRC_DIR),,$(dir $1))))))\ -$(eval FLG := $(MOD:%=-I% ))\ +$(eval FLG := $(MOD:%=-I$(SRC_DIR)/% ))\ $(if $(wildcard $1), $(eval DEPS := $(filter-out \ %:,$(shell $($2_C) $(FLG) -M -MG $1)))\ $(eval DDEPS := $(filter $(DRIVER_DIR:$(SRC_DIR)/%=%/%),$(DEPS)))\ @@ -329,7 +329,7 @@ endef # a single locally-linked (no external -L libs) object (for simplified linking # modules as static libs).####################################################### define MODULE_ARCRULE = -$(eval ARCDEPS := $(filter $1/%.$(c_OBJ),$(foreach lang,$(LANGS),$($(lang)_MOD_TRG))))\ +$(eval ARCDEPS := $(filter $(SRC_DIR)/$1/%.$(c_OBJ),$(foreach lang,$(LANGS),$($(lang)_MOD_TRG))))\ $(eval MAKE_TARGETS+= $1.$(c_AROBJ))\ $(SRC_DIR)/$1.$(c_AROBJ): $(ARCDEPS) -- 2.18.0