Add OBJDIR optional build variable to the BULD build system module, to allow the user project to relocate the output object and dependency files to a different directory.

This commit is contained in:
Dean Camera 2012-06-10 19:39:40 +00:00
parent fe3a5c2462
commit 9ab445518a
10 changed files with 37 additions and 6 deletions

View file

@ -23,7 +23,9 @@ ifeq ($(MAKELEVEL), 10)
endif
all:
ifeq ($(OBJDIR),)
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
endif
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)