lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # /*****************************************************************************
|
| 2 | #* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
|
| 3 | #*
|
| 4 | #* ÎļþÃû³Æ: Makefile
|
| 5 | #* Îļþ±êʶ: Makefile
|
| 6 | #* ÄÚÈÝÕªÒª: Makefile of ZTE zcoredemo
|
| 7 | #* ʹÓ÷½·¨: void
|
| 8 | #*
|
| 9 | #* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
| 10 | #* -----------------------------------------------------------------------------
|
| 11 | #* 2017/02/16 V1.0 Create ax ´´½¨
|
| 12 | #*
|
| 13 | # ******************************************************************************/
|
| 14 |
|
| 15 | #*******************************************************************************
|
| 16 | # include ZTE application makefile
|
| 17 | #*******************************************************************************
|
| 18 | include $(zte_app_mak)
|
| 19 |
|
| 20 | #*******************************************************************************
|
| 21 | # macro definition
|
| 22 | #*******************************************************************************
|
| 23 | ZAPP_PATH = ${zte_app_path}
|
| 24 | PHONE_TYPE = ${_APP_PHONE_TYPE_}
|
| 25 | ZCORE_PATH = $(zte_lib_path)/libzcore/std
|
| 26 | ZCORE_ZCORE_PATH = $(ZCORE_PATH)/src/zCore
|
| 27 | ZCORE_SRC_PATH = $(ZCORE_ZCORE_PATH)/src
|
| 28 | ZCORE_INC_PATH = $(ZCORE_ZCORE_PATH)/inc
|
| 29 | ZCORE_LIB_PATH = $(ZCORE_PATH)/lib
|
| 30 | ZTE_PHONE_PATH = ${zte_app_path}/zte_phone
|
| 31 | MMI_PATH = ${ZTE_PHONE_PATH}/${PHONE_TYPE}/mmi
|
| 32 | NEWMMI=${MMI_PATH}/new_mmi
|
| 33 |
|
| 34 | PLATADAPT_PATH = ${zte_lib_path}/libzcore/std/platadapt/phone
|
| 35 | APP_PRIV_LIB_PATH = $(ZTE_PHONE_PATH)/lib
|
| 36 | PLATADAPT_LIB_PATH = $(PLATADAPT_PATH)/lib
|
| 37 | FONT_LIB_PATH = ${zte_lib_path}/libzcore/std/lib/phone/font
|
| 38 | IME_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/ime
|
| 39 | FREETYPE_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/freetype
|
| 40 | NEWMMI_LIB_PATH =${NEWMMI}/lib
|
| 41 | APP2_LIB_PATH = ${MMI_PATH}/app2/lib
|
| 42 | #*******************************************************************************
|
| 43 | # execute
|
| 44 | #*******************************************************************************
|
| 45 | EXEC = zcoredemo
|
| 46 |
|
| 47 | #*******************************************************************************
|
| 48 | # src
|
| 49 | #*******************************************************************************
|
| 50 | SRCS = $(wildcard *.c)
|
| 51 |
|
| 52 |
|
| 53 | #*******************************************************************************
|
| 54 | # objects
|
| 55 | #*******************************************************************************
|
| 56 | OBJS = $(patsubst %.c,%.o, $(SRCS))
|
| 57 |
|
| 58 | #*******************************************************************************
|
| 59 | # include path
|
| 60 | #*******************************************************************************
|
| 61 | INCLUE_PATH = -I. \
|
| 62 | -I$(PLATADAPT_PATH)/include/drv \
|
| 63 | -I$(PLATADAPT_PATH)/include/msp \
|
| 64 | -I$(PLATADAPT_PATH)/Include/misc \
|
| 65 | -I$(ZCORE_PATH)/inc/app/usat \
|
| 66 | -I$(ZCORE_PATH)/inc/app/calendar \
|
| 67 | -I$(ZCORE_PATH)/inc/app/setting \
|
| 68 | -I$(ZCORE_PATH)/inc/pal/os \
|
| 69 | -I$(ZCORE_PATH)/inc/pal/dm \
|
| 70 | -I$(ZCORE_PATH)/inc/config \
|
| 71 | -I$(ZCORE_PATH)/inc/zCore/kernel \
|
| 72 | -I$(ZCORE_PATH)/inc/zCore/gui/ext \
|
| 73 | -I$(ZCORE_PATH)/inc/zCore/gui/ctrl \
|
| 74 | -I$(ZCORE_PATH)/inc/zCore/bl \
|
| 75 | -I$(ZCORE_PATH)/inc/zCore/gui \
|
| 76 | -I$(ZCORE_PATH)/inc/zCore/msm \
|
| 77 | -I$(ZCORE_PATH)/inc/zCore/ui_fw/ctrl \
|
| 78 | -I$(ZCORE_PATH)/inc/zCore/app_fw \
|
| 79 | -I$(ZCORE_PATH)/inc/framework/fwext2 \
|
| 80 | -I$(ZCORE_INC_PATH)/gui \
|
| 81 | -I$(ZCORE_INC_PATH)/os \
|
| 82 | -I$(ZCORE_INC_PATH)/gal \
|
| 83 | -I$(PLATADAPT_PATH)/Include \
|
| 84 | -I$(PLATADAPT_PATH)/Include/dm \
|
| 85 | -I$(PLATADAPT_PATH)/Include/drv \
|
| 86 | -I$(PLATADAPT_PATH)/src/os \
|
| 87 | -I$(ZCORE_SRC_PATH)/gui/adapter/inc\
|
| 88 | -I$(ZAPP_PATH)/include \
|
| 89 | -I$(IME_LIB_PATH)/include \
|
| 90 |
|
| 91 | CFLAGS += -Wextra -Wall $(INCLUE_PATH)
|
| 92 |
|
| 93 |
|
| 94 | #*******************************************************************************
|
| 95 | # library
|
| 96 | #*******************************************************************************
|
| 97 | LDLIBS += -lpthread -lm -lrt
|
| 98 | LDLIBS += -lnvram_sc
|
| 99 | LDLIBS += -lsoftap
|
| 100 | LDLIBS += -lsoft_timer_sc
|
| 101 | #LDLIBS += -latutils
|
| 102 |
|
| 103 | #*******************************************************************************
|
| 104 | # library path
|
| 105 | #*******************************************************************************
|
| 106 | LDLIBS += -L$(zte_lib_path)/libapp_common
|
| 107 | LDLIBS += -L$(zte_lib_path)/libnvram
|
| 108 | LDLIBS += -L$(zte_lib_path)/libsoftap
|
| 109 | LDLIBS += -L$(zte_lib_path)/libsoft_timer
|
| 110 | LDLIBS += -L$(zte_lib_path)/libatutils
|
| 111 | LDLIBS += -L$(zte_lib_path)/libzcore
|
| 112 | LDLIBS += -L$(zte_lib_path)/libtinyalsa
|
| 113 | LDLIBS += -L$(zte_lib_path)/libamt
|
| 114 | LDLIBS += -L$(zte_lib_path)/libcpnv
|
| 115 |
|
| 116 |
|
| 117 | #*******************************************************************************
|
| 118 | # library
|
| 119 | #*******************************************************************************
|
| 120 | LDLIBS += ${FREETYPE_LIB_PATH}/*.a
|
| 121 | LDLIBS += ${FONT_LIB_PATH}/libttf_font.a
|
| 122 | LDLIBS += ${ZCORE_LIB_PATH}/libzcore_phone.a
|
| 123 | LDLIBS += ${ZCORE_LIB_PATH}/libplatadapt_phone.a
|
| 124 | LDLIBS += $(zte_lib_path)/libtinyalsa/*.a
|
| 125 | LDLIBS += $(zte_lib_path)/libamt/*.a
|
| 126 | LDLIBS += $(zte_lib_path)/libcpnv/*.a
|
| 127 | #*******************************************************************************
|
| 128 | # targets
|
| 129 | #*******************************************************************************
|
| 130 |
|
| 131 | all: $(EXEC)
|
| 132 |
|
| 133 | $(EXEC): $(OBJS)
|
| 134 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
|
| 135 |
|
| 136 | romfs:
|
| 137 | cp $(EXEC) $(EXEC).elf
|
| 138 | $(ROMFSINST) /bin/$(EXEC)
|
| 139 |
|
| 140 | clean:
|
| 141 | -rm -f $(EXEC) $(OBJS) *.elf *.gdb *.o
|
| 142 |
|