2015-04-17 14:22:38 +00:00
|
|
|
####################################################################################
|
|
|
|
####################################################################################
|
|
|
|
## Copyright 2011(c) Analog Devices, Inc.
|
|
|
|
## Auto-generated, do not modify!
|
|
|
|
####################################################################################
|
|
|
|
####################################################################################
|
|
|
|
help:
|
|
|
|
@echo ""
|
|
|
|
@echo "Please specify a target."
|
|
|
|
@echo ""
|
|
|
|
@echo "To make all projects:"
|
|
|
|
@echo " make all"
|
|
|
|
@echo ""
|
|
|
|
@echo "To build a specific project:"
|
|
|
|
@echo " make proj.board"
|
|
|
|
@echo "e.g.,"
|
|
|
|
@echo " make fmcomms1.zed"
|
|
|
|
|
|
|
|
|
|
|
|
PROJECTS := $(filter-out $(NO_PROJ), $(shell ls projects))
|
|
|
|
define PROJECT_RULE
|
|
|
|
$1.$2:
|
2018-03-06 12:36:06 +00:00
|
|
|
cd projects/$1/$2; $(MAKE)
|
2015-04-17 14:22:38 +00:00
|
|
|
endef
|
|
|
|
define APROJECT_RULE
|
|
|
|
$(foreach archname,$(shell ls projects/$1), $(eval $(call PROJECT_RULE,$1,$(archname))))
|
|
|
|
endef
|
|
|
|
$(foreach projname,$(PROJECTS), $(eval $(call APROJECT_RULE,$(projname))))
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: lib all clean clean-all
|
|
|
|
|
|
|
|
lib:
|
2018-03-06 12:36:06 +00:00
|
|
|
$(MAKE) -C library/ all
|
2015-04-17 14:22:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
all:
|
2018-03-06 12:36:06 +00:00
|
|
|
$(MAKE) -C projects/ all
|
2015-04-17 14:22:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2018-03-06 12:36:06 +00:00
|
|
|
$(MAKE) -C projects/ clean
|
2015-04-17 14:22:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean-all:clean
|
2018-03-06 12:36:06 +00:00
|
|
|
$(MAKE) -C projects/ clean
|
|
|
|
$(MAKE) -C library/ clean
|
2015-04-17 14:22:38 +00:00
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
####################################################################################
|