lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #***********************************************************************
|
| 2 | # °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
|
| 3 | #
|
| 4 | # ÎļþÃû³Æ£º
|
| 5 | # Îļþ±êʶ£º
|
| 6 | # ÄÚÈÝÕªÒª£º
|
| 7 | #
|
| 8 | # ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
| 9 | # ---------------------------------------------------------------------
|
| 10 | # 2013/06/09 V1.0 mayiping create
|
| 11 | #***********************************************************************/
|
| 12 |
|
| 13 | include $(PRJ_PATH)/config/project.mk
|
| 14 |
|
| 15 | #===============================================
|
| 16 | # ÅäÖÿª·¢Ä£Ê½»¹ÊÇ·¢²¼Ä£Ê½
|
| 17 | #===============================================
|
| 18 | IS_MMP_DEV_PRJ ?= no
|
| 19 |
|
| 20 | MMP_ROOT = $(MMP_PATH)
|
| 21 |
|
| 22 | lib: amr fr efr hr mmptest copy
|
| 23 | clean: amrclean frclean efrclean hrclean mmptestclean copyclean
|
| 24 |
|
| 25 | #===============================================
|
| 26 | # mmpÄ£¿é
|
| 27 | #===============================================
|
| 28 | ifeq ($(IS_MMP_DEV_PRJ), yes)
|
| 29 | amr:
|
| 30 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws lib
|
| 31 | amrclean:
|
| 32 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws clean
|
| 33 | fr:
|
| 34 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws lib
|
| 35 | frclean:
|
| 36 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws clean
|
| 37 | efr:
|
| 38 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws lib
|
| 39 | efrclean:
|
| 40 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws clean
|
| 41 | hr:
|
| 42 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws lib
|
| 43 | hrclean:
|
| 44 | @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws clean
|
| 45 | mmptest:
|
| 46 | # @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws lib
|
| 47 | mmptestclean:
|
| 48 | # @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws clean
|
| 49 | copy:
|
| 50 | @-$(MKDIR) $(PLAT_LIB_EXTERNAL_PATH)
|
| 51 | @$(COPY) --force $(PLAT_PATH)/src/mmp/amr/lib/$(CPU_ARCH)/$(USE_CMPL)/amr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 52 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/fr/lib/$(CPU_ARCH)/$(USE_CMPL)/fr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 53 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/efr/lib/$(CPU_ARCH)/$(USE_CMPL)/efr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 54 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/hr/lib/$(CPU_ARCH)/$(USE_CMPL)/hr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 55 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/test/lib/$(CPU_ARCH)/$(USE_CMPL)/mmptest.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 56 | copyclean:
|
| 57 | @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/amr.a
|
| 58 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/fr.a
|
| 59 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/efr.a
|
| 60 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/hr.a
|
| 61 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/mmptest.a
|
| 62 | else
|
| 63 | amr:
|
| 64 | @$(ECHO) "--to build amr!"
|
| 65 | amrclean:
|
| 66 | @$(ECHO) "--to clean amr!"
|
| 67 | fr:
|
| 68 | @$(ECHO) "--to build fr!"
|
| 69 | frclean:
|
| 70 | @$(ECHO) "--to clean fr!"
|
| 71 | efr:
|
| 72 | @$(ECHO) "--to build efr!"
|
| 73 | efrclean:
|
| 74 | @$(ECHO) "--to clean efr!"
|
| 75 | hr:
|
| 76 | @$(ECHO) "--to build hr!"
|
| 77 | hrclean:
|
| 78 | @$(ECHO) "--to clean hr!"
|
| 79 | mmptest:
|
| 80 | # @$(ECHO) "--to build test!"
|
| 81 | mmptestclean:
|
| 82 | # @$(ECHO) "--to clean test!"
|
| 83 | copy:
|
| 84 | @-$(MKDIR) $(PLAT_LIB_EXTERNAL_PATH)
|
| 85 | @$(COPY) --force $(PLAT_PATH)/src/mmp/amr/lib/$(CPU_ARCH)/$(USE_CMPL)/amr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 86 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/fr/lib/$(CPU_ARCH)/$(USE_CMPL)/fr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 87 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/efr/lib/$(CPU_ARCH)/$(USE_CMPL)/efr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 88 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/hr/lib/$(CPU_ARCH)/$(USE_CMPL)/hr.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 89 | # @$(COPY) --force $(PLAT_PATH)/src/mmp/test/lib/$(CPU_ARCH)/$(USE_CMPL)/mmptest.a $(PLAT_LIB_EXTERNAL_PATH)
|
| 90 | copyclean:
|
| 91 | @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/amr.a
|
| 92 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/fr.a
|
| 93 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/efr.a
|
| 94 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/hr.a
|
| 95 | # @$(RM) -rf $(PLAT_LIB_EXTERNAL_PATH)/mmptest.a
|
| 96 | endif
|