blob: fa6b3863058110f88d5b748c7299cdeebf1f814b [file] [log] [blame]
# /*****************************************************************************
#* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
#*
#* ÎļþÃû³Æ: Makefile
#* Îļþ±êʶ: Makefile
#* ÄÚÈÝÕªÒª: Makefile of ZTE zcoredemo
#* ʹÓ÷½·¨: void
#*
#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
#* -----------------------------------------------------------------------------
#* 2017/02/16 V1.0 Create ax ´´½¨
#*
# ******************************************************************************/
#*******************************************************************************
# include ZTE application makefile
#*******************************************************************************
include $(zte_app_mak)
#*******************************************************************************
# macro definition
#*******************************************************************************
ZAPP_PATH = ${zte_app_path}
PHONE_TYPE = ${_APP_PHONE_TYPE_}
ZCORE_PATH = $(zte_lib_path)/libzcore/std
ZCORE_ZCORE_PATH = $(ZCORE_PATH)/src/zCore
ZCORE_SRC_PATH = $(ZCORE_ZCORE_PATH)/src
ZCORE_INC_PATH = $(ZCORE_ZCORE_PATH)/inc
ZCORE_LIB_PATH = $(ZCORE_PATH)/lib
ZTE_PHONE_PATH = ${zte_app_path}/zte_phone
MMI_PATH = ${ZTE_PHONE_PATH}/${PHONE_TYPE}/mmi
NEWMMI=${MMI_PATH}/new_mmi
PLATADAPT_PATH = ${zte_lib_path}/libzcore/std/platadapt/phone
APP_PRIV_LIB_PATH = $(ZTE_PHONE_PATH)/lib
PLATADAPT_LIB_PATH = $(PLATADAPT_PATH)/lib
FONT_LIB_PATH = ${zte_lib_path}/libzcore/std/lib/phone/font
IME_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/ime
FREETYPE_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/freetype
NEWMMI_LIB_PATH =${NEWMMI}/lib
APP2_LIB_PATH = ${MMI_PATH}/app2/lib
#*******************************************************************************
# execute
#*******************************************************************************
EXEC = zcoredemo
#*******************************************************************************
# src
#*******************************************************************************
SRCS = $(wildcard *.c)
#*******************************************************************************
# objects
#*******************************************************************************
OBJS = $(patsubst %.c,%.o, $(SRCS))
#*******************************************************************************
# include path
#*******************************************************************************
INCLUE_PATH = -I. \
-I$(PLATADAPT_PATH)/include/drv \
-I$(PLATADAPT_PATH)/include/msp \
-I$(PLATADAPT_PATH)/Include/misc \
-I$(ZCORE_PATH)/inc/app/usat \
-I$(ZCORE_PATH)/inc/app/calendar \
-I$(ZCORE_PATH)/inc/app/setting \
-I$(ZCORE_PATH)/inc/pal/os \
-I$(ZCORE_PATH)/inc/pal/dm \
-I$(ZCORE_PATH)/inc/config \
-I$(ZCORE_PATH)/inc/zCore/kernel \
-I$(ZCORE_PATH)/inc/zCore/gui/ext \
-I$(ZCORE_PATH)/inc/zCore/gui/ctrl \
-I$(ZCORE_PATH)/inc/zCore/bl \
-I$(ZCORE_PATH)/inc/zCore/gui \
-I$(ZCORE_PATH)/inc/zCore/msm \
-I$(ZCORE_PATH)/inc/zCore/ui_fw/ctrl \
-I$(ZCORE_PATH)/inc/zCore/app_fw \
-I$(ZCORE_PATH)/inc/framework/fwext2 \
-I$(ZCORE_INC_PATH)/gui \
-I$(ZCORE_INC_PATH)/os \
-I$(ZCORE_INC_PATH)/gal \
-I$(PLATADAPT_PATH)/Include \
-I$(PLATADAPT_PATH)/Include/dm \
-I$(PLATADAPT_PATH)/Include/drv \
-I$(PLATADAPT_PATH)/src/os \
-I$(ZCORE_SRC_PATH)/gui/adapter/inc\
-I$(ZAPP_PATH)/include \
-I$(IME_LIB_PATH)/include \
CFLAGS += -Wextra -Wall $(INCLUE_PATH)
#*******************************************************************************
# library
#*******************************************************************************
LDLIBS += -lpthread -lm -lrt
LDLIBS += -lnvram_sc
LDLIBS += -lsoftap
LDLIBS += -lsoft_timer_sc
#LDLIBS += -latutils
#*******************************************************************************
# library path
#*******************************************************************************
LDLIBS += -L$(zte_lib_path)/libapp_common
LDLIBS += -L$(zte_lib_path)/libnvram
LDLIBS += -L$(zte_lib_path)/libsoftap
LDLIBS += -L$(zte_lib_path)/libsoft_timer
LDLIBS += -L$(zte_lib_path)/libatutils
LDLIBS += -L$(zte_lib_path)/libzcore
LDLIBS += -L$(zte_lib_path)/libtinyalsa
LDLIBS += -L$(zte_lib_path)/libamt
LDLIBS += -L$(zte_lib_path)/libcpnv
#*******************************************************************************
# library
#*******************************************************************************
LDLIBS += ${FREETYPE_LIB_PATH}/*.a
LDLIBS += ${FONT_LIB_PATH}/libttf_font.a
LDLIBS += ${ZCORE_LIB_PATH}/libzcore_phone.a
LDLIBS += ${ZCORE_LIB_PATH}/libplatadapt_phone.a
LDLIBS += $(zte_lib_path)/libtinyalsa/*.a
LDLIBS += $(zte_lib_path)/libamt/*.a
LDLIBS += $(zte_lib_path)/libcpnv/*.a
#*******************************************************************************
# targets
#*******************************************************************************
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
romfs:
cp $(EXEC) $(EXEC).elf
$(ROMFSINST) /bin/$(EXEC)
clean:
-rm -f $(EXEC) $(OBJS) *.elf *.gdb *.o