1 include $(T)/common.mak
6 P_O := $(call pathify,$(O))
7 P_S := $(call pathify,$(S))
8 P_T := $(call pathify,$(T))
9 P_I := $(call pathify,$(I))
11 all: $(addsuffix -all, $(SUBDIRS))
12 clean: $(addsuffix -clean, $(SUBDIRS))
13 distclean: $(addsuffix -distclean, $(SUBDIRS))
14 depend: $(addsuffix -depend, $(SUBDIRS))
15 install: $(addsuffix -install, $(SUBDIRS))
17 define SUBDIR_template
19 $(MAKE) -C $(1) all O=../$(P_O) T=../$(P_T)
21 $(MAKE) -C $(1) clean O=../$(P_O) T=../$(P_T)
23 $(MAKE) -C $(1) distclean O=../$(P_O) T=../$(P_T)
25 $(MAKE) -C $(1) depend O=../$(P_O) T=../$(P_T)
27 $(MAKE) -C $(1) install O=../$(P_O) T=../$(P_T) I=$(P_I)/lib/$(CONFIG_LIB_SUBDIR)
30 $(foreach SUBDIR,$(SUBDIRS),$(eval $(call SUBDIR_template,$(SUBDIR))))