toupper = $(shell echo $1 |tr '[a-z]' '[A-Z]')
tolower = $(shell echo $1 |tr '[A-Z]' '[a-z]')
mktarget1 = @echo ./makebat $(call tolower,$(word 3,$(subst _, ,$@))) all $(call toupper,$(word 1,$(subst _, ,$@))) $(call toupper,$(word 2,$(subst _, ,$@)))
mktarget2 = @echo ./makebat $(call tolower,$(word 2,$(subst _, ,$@))) all $(call toupper,$(word 1,$(subst _, ,$@)))
mktarget3 = @echo ./makebat process all $(call toupper,$(word 2,$(subst _, ,$@))) $(call toupper,$(word 1,$(subst _, ,$@))) liball
board_cpu = p2020 armadaxp saber
prj_cpu = 83xx armam335x saber armadaxp
all: sme smk smha $(83xx_lcard) $(arm_lcard) $(prj_cpu)
sme: p2020
smk: armadaxp
smha: saber
$(board_cpu):%: %_COMMON %_NCPA
p2020_bspver:
@echo ./makebat bspver all SME P2020
armadaxp_bspver:
@echo ./makebat bspver all SMK ARMADAXP
saber_bspver:
@echo ./makebat bspver all SMHA SABER
%_tuliplib:%_bspver
$(call mktarget2)
%_dbscore:%_tuliplib
$(call mktarget2)
%_COMMON:%_dbscore
$(call mktarget3)
%_NCPA:%_dbscore
$(call mktarget3)
prj_%:
@echo ./makebat prj all NCPA $(call toupper,$(word 2,$(subst _, ,$@))) comprj
$(prj_cpu):%:prj_%
sai:
fege:
e1t1_coeus:
e1t1:
stm_coeus:
gpc:
rmu:
阅读(676) | 评论(0) | 转发(0) |