1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2014 6WIND S.A.
4 MAKEFLAGS += --no-print-directory
6 ALL_DEPDIRS := $(patsubst DEPDIRS-%,%,$(filter DEPDIRS-%,$(.VARIABLES)))
10 BASE_OUTPUT ?= $(abspath $(O))
23 M=$(CURDIR)/$(@)/Makefile \
24 O=$(BASE_OUTPUT)/$(CUR_SUBDIR)/$(@)/$(RTE_TARGET) \
25 BASE_OUTPUT=$(BASE_OUTPUT) \
26 CUR_SUBDIR=$(CUR_SUBDIR)/$(@) \
28 $(filter-out $(DIRS-y),$(MAKECMDGOALS))
33 $(1): | $(DEPDIRS-$(1))
35 $(if $(D),$(info $(1) depends on $(DEPDIRS-$(1))))
38 $(foreach dir,$(ALL_DEPDIRS),\
39 $(eval $(call depdirs_rule,$(dir))))