#*********************************************************************** | |
# °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
# | |
# ÎļþÃû³Æ£º | |
# Îļþ±êʶ£º | |
# ÄÚÈÝÕªÒª£º | |
# | |
# ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ | |
# --------------------------------------------------------------------- | |
# 2013/06/09 V1.0 mayiping create | |
#***********************************************************************/ | |
include $(PRJ_PATH)/config/project.mk | |
#=============================================== | |
# ÅäÖÿª·¢Ä£Ê½»¹ÊÇ·¢²¼Ä£Ê½ | |
#=============================================== | |
IS_MMP_DEV_PRJ ?= no | |
MMP_ROOT = $(MMP_PATH) | |
lib: amr fr efr hr mmptest copy | |
clean: amrclean frclean efrclean hrclean mmptestclean copyclean | |
#=============================================== | |
# mmpÄ£¿é | |
#=============================================== | |
ifeq ($(IS_MMP_DEV_PRJ), yes) | |
amr: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws lib | |
amrclean: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws clean | |
fr: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws lib | |
frclean: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws clean | |
efr: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws lib | |
efrclean: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws clean | |
hr: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws lib | |
hrclean: | |
@$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws clean | |
mmptest: | |
# @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws lib | |
mmptestclean: | |
# @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws clean | |
copy: | |
@-$(MKDIR) $(PLAT_LIB_EXTERNAL_PATH) | |
@$(COPY) --force $(PLAT_PATH)/src/mmp/amr/lib/$(CPU_ARCH)/$(USE_CMPL)/amr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/fr/lib/$(CPU_ARCH)/$(USE_CMPL)/fr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/efr/lib/$(CPU_ARCH)/$(USE_CMPL)/efr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/hr/lib/$(CPU_ARCH)/$(USE_CMPL)/hr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/test/lib/$(CPU_ARCH)/$(USE_CMPL)/mmptest.a $(PLAT_LIB_EXTERNAL_PATH) | |
copyclean: | |
@$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/amr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/fr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/efr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/hr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/mmptest.a | |
else | |
amr: | |
@$(ECHO) "--to build amr!" | |
amrclean: | |
@$(ECHO) "--to clean amr!" | |
fr: | |
@$(ECHO) "--to build fr!" | |
frclean: | |
@$(ECHO) "--to clean fr!" | |
efr: | |
@$(ECHO) "--to build efr!" | |
efrclean: | |
@$(ECHO) "--to clean efr!" | |
hr: | |
@$(ECHO) "--to build hr!" | |
hrclean: | |
@$(ECHO) "--to clean hr!" | |
mmptest: | |
# @$(ECHO) "--to build test!" | |
mmptestclean: | |
# @$(ECHO) "--to clean test!" | |
copy: | |
@-$(MKDIR) $(PLAT_LIB_EXTERNAL_PATH) | |
@$(COPY) --force $(PLAT_PATH)/src/mmp/amr/lib/$(CPU_ARCH)/$(USE_CMPL)/amr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/fr/lib/$(CPU_ARCH)/$(USE_CMPL)/fr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/efr/lib/$(CPU_ARCH)/$(USE_CMPL)/efr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/hr/lib/$(CPU_ARCH)/$(USE_CMPL)/hr.a $(PLAT_LIB_EXTERNAL_PATH) | |
# @$(COPY) --force $(PLAT_PATH)/src/mmp/test/lib/$(CPU_ARCH)/$(USE_CMPL)/mmptest.a $(PLAT_LIB_EXTERNAL_PATH) | |
copyclean: | |
@$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/amr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/fr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/efr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/hr.a | |
# @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/mmptest.a | |
endif |