blob: a1898839406125d11de0ca2b76f027a927c47d84 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#***********************************************************************
2# °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3#
4# ÎļþÃû³Æ£º
5# Îļþ±êʶ£º
6# ÄÚÈÝÕªÒª£º
7#
8# ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
9# ---------------------------------------------------------------------
10# 2013/06/09 V1.0 mayiping create
11#***********************************************************************/
12
13include $(PRJ_PATH)/config/project.mk
14
15#===============================================
16# ÅäÖÿª·¢Ä£Ê½»¹ÊÇ·¢²¼Ä£Ê½
17#===============================================
18IS_MMP_DEV_PRJ ?= no
19
20MMP_ROOT = $(MMP_PATH)
21
22lib: amr fr efr hr mmptest copy
23clean: amrclean frclean efrclean hrclean mmptestclean copyclean
24
25#===============================================
26# mmpÄ£¿é
27#===============================================
28ifeq ($(IS_MMP_DEV_PRJ), yes)
29amr:
30 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws lib
31amrclean:
32 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/amr/ws clean
33fr:
34 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws lib
35frclean:
36 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/fr/ws clean
37efr:
38 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws lib
39efrclean:
40 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/efr/ws clean
41hr:
42 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws lib
43hrclean:
44 @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/hr/ws clean
45mmptest:
46# @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws lib
47mmptestclean:
48# @$(GNUMAKE) --no-print-directory -C $(MMP_ROOT)/test/ws clean
49copy:
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)
56copyclean:
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
62else
63amr:
64 @$(ECHO) "--to build amr!"
65amrclean:
66 @$(ECHO) "--to clean amr!"
67fr:
68 @$(ECHO) "--to build fr!"
69frclean:
70 @$(ECHO) "--to clean fr!"
71efr:
72 @$(ECHO) "--to build efr!"
73efrclean:
74 @$(ECHO) "--to clean efr!"
75hr:
76 @$(ECHO) "--to build hr!"
77hrclean:
78 @$(ECHO) "--to clean hr!"
79mmptest:
80# @$(ECHO) "--to build test!"
81mmptestclean:
82# @$(ECHO) "--to clean test!"
83copy:
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)
90copyclean:
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
96endif