blob: 5b4ab50d6427b8ebeb8a55bc3fc5010fdcbaf126 [file] [log] [blame]
ifneq ($(MK_SDK_VERSION),yes)
# /*****************************************************************************
#* 版权所有 (C)2015, 中兴通讯股份有限公司。
#*
#* 文件名称: Makefile
#* 文件标识: Makefile
#* 内容摘要: Makefile of ZTE librarys
#* 使用方法: void
#*
#* 修改日期 版本号 修改标记 修改人 修改内容
#* -----------------------------------------------------------------------------
#* 2015/06/25 V1.0 Create 张楠 创建
#*
# ******************************************************************************/
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
#include $(zte_lib_mak)
include $(COMMON_MK)
#*******************************************************************************
# library
#*******************************************************************************
ifneq ($(LINUX_TYPE),uClinux)
#SO := libzcore.so
WORKPATH = $(zte_lib_path)
else
WORKPATH = ${ROOT_DIR}/os/uClinux/lib/zte_libs
endif
LIB := libzcore.a
LIBBITMAPFONT := libbitmap_font.a
LIBTTFFONT := libttf_font.a
ZCORE_PATH = $(WORKPATH)/libzcore/min/zcore_zcore
ZCORE_OS_PATH = $(WORKPATH)/libzcore/min/zcore_os
ZCORE_PNG_PATH = $(WORKPATH)/libzcore/min/zcore_png
ZCORE_GZIP_PATH = $(WORKPATH)/libzcore/min/zcore_gzip
ZCORE_GUI_PATH = $(WORKPATH)/libzcore/min/zcore_gui
#*******************************************************************************
# objects
#*******************************************************************************
GUI_GDI_OBJS = $(ZCORE_GUI_PATH)/GUI/gdi/Agent.o \
$(ZCORE_GUI_PATH)/GUI/gdi/DCMgt.o \
$(ZCORE_GUI_PATH)/GUI/gdi/d_vbf_helvR16.o \
$(ZCORE_GUI_PATH)/GUI/gdi/d_vbf_helvR21.o \
$(ZCORE_GUI_PATH)/GUI/gdi/d_vbf_helvR27.o \
$(ZCORE_GUI_PATH)/GUI/gdi/d_vbf_helvR18.o \
$(ZCORE_GUI_PATH)/GUI/gdi/endianrw.o \
$(ZCORE_GUI_PATH)/GUI/gdi/FixStr.o \
$(ZCORE_GUI_PATH)/GUI/gdi/GAL.o \
$(ZCORE_GUI_PATH)/GUI/gdi/GuiTool_mem.o \
$(ZCORE_GUI_PATH)/GUI/gdi/icon.o \
$(ZCORE_GUI_PATH)/GUI/gdi/imgmgt_bmpmgt.o \
$(ZCORE_GUI_PATH)/GUI/gdi/imgmgt_loadbmp.o \
$(ZCORE_GUI_PATH)/GUI/gdi/layer.o \
$(ZCORE_GUI_PATH)/GUI/gdi/loadicon.o \
$(ZCORE_GUI_PATH)/GUI/gdi/mapunitogb.o \
$(ZCORE_GUI_PATH)/GUI/gdi/misc.o \
$(ZCORE_GUI_PATH)/GUI/gdi/pixops.o \
$(ZCORE_GUI_PATH)/GUI/gdi/Rect.o \
$(ZCORE_GUI_PATH)/GUI/gdi/Region.o \
$(ZCORE_GUI_PATH)/GUI/gdi/rotatebmp.o \
$(ZCORE_GUI_PATH)/GUI/gdi/rwops.o \
$(ZCORE_GUI_PATH)/GUI/gdi/SDEV.o \
$(ZCORE_GUI_PATH)/GUI/gdi/sDev_ARGB8888.o \
$(ZCORE_GUI_PATH)/GUI/gdi/sDev_RGB4.o \
$(ZCORE_GUI_PATH)/GUI/gdi/sDev_RGB565.o \
$(ZCORE_GUI_PATH)/GUI/gdi/sDev_RGB888.o \
$(ZCORE_GUI_PATH)/GUI/gdi/surface.o \
$(ZCORE_GUI_PATH)/GUI/gdi/varfont.o \
$(ZCORE_GUI_PATH)/GUI/gdi/wide_line.o \
$(ZCORE_GUI_PATH)/GUI/gdi/win2D.o \
$(ZCORE_GUI_PATH)/GUI/gdi/zLayer.o
GUI_OBJS = $(ZCORE_GUI_PATH)/GUI/gui/caret.o \
$(ZCORE_GUI_PATH)/GUI/gui/Zcore_config.o
GUI_WM_OBJS = $(ZCORE_GUI_PATH)/GUI/wm/CtrlClass.o \
$(ZCORE_GUI_PATH)/GUI/wm/ial_cb_dt.o \
$(ZCORE_GUI_PATH)/GUI/wm/ial_parse.o \
$(ZCORE_GUI_PATH)/GUI/wm/platmain.o \
$(ZCORE_GUI_PATH)/GUI/wm/Timer.o \
$(ZCORE_GUI_PATH)/GUI/wm/WinApi.o \
$(ZCORE_GUI_PATH)/GUI/wm/WinClip.o \
$(ZCORE_GUI_PATH)/GUI/wm/WinDsk.o \
$(ZCORE_GUI_PATH)/GUI/wm/WinMsg.o \
$(ZCORE_GUI_PATH)/GUI/wm/WinTree.o
GUI_CTRL_OBJS = $(ZCORE_GUI_PATH)/GUI/ctrl/2DThumbTouch.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/animation.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/bmp_black_bg_150_0.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/clipboard.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/ctrlmisc.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/edit.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/gif.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/listmodel.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/png_background.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/png_scrollbar_pics.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/scrollbar.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/scrolled.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/scrollview.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/scrollwnd.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/static.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/te_png_gm_listscroll_bar_n.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/te_png_gm_scroll_bg.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/textedit.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/touchicon.o \
$(ZCORE_GUI_PATH)/GUI/ctrl/turntable.o
GUI_EFFECT_OBJS = $(ZCORE_GUI_PATH)/GUI/effect/EffectAnimation.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectBlur.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectBox.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectCalcPos.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectControler.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectFade.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectFlip.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectPage.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectPageTurn.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectSingleWave.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectWave.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectWipe.o \
$(ZCORE_GUI_PATH)/GUI/effect/EffectZoom.o \
$(ZCORE_GUI_PATH)/GUI/effect/EngineMem.o \
$(ZCORE_GUI_PATH)/GUI/effect/EngineRect.o \
$(ZCORE_GUI_PATH)/GUI/effect/IconEffect.o \
$(ZCORE_GUI_PATH)/GUI/effect/IconEffectPattern.o \
$(ZCORE_GUI_PATH)/GUI/effect/IconFly.o
GUI_BMP_OBJS = $(ZCORE_GUI_PATH)/GUI/bmp/bmpInterface.o \
$(ZCORE_GUI_PATH)/GUI/bmp/bmpModule.o \
$(ZCORE_GUI_PATH)/GUI/bmp/gifInterface.o \
$(ZCORE_GUI_PATH)/GUI/bmp/pngInterface.o
#$(ZCORE_GUI_PATH)/GUI/bmp/jpegInterface.o
GUI_FONT_OBJS = $(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_charset.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_devfont.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_fontbits.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_fontoperate.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_LogFont.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_sysfont.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_textout.o \
$(ZCORE_GUI_PATH)/GUI/bitmap_font/txtmgt_varfont.o
GUI_TTF_FONT_OBJS =$(ZCORE_GUI_PATH)/GUI/ttf_font/ttf_fontconfig.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_charset.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_devfont.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_fontbits.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_fontoperate.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_LogFont.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_sysfont.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_varfont.o \
$(ZCORE_GUI_PATH)/GUI/ttf_font/txtmgt_textout.o
GUI_ADAPTER_OBJS = $(ZCORE_GUI_PATH)/GUI/adapter/zcore_fileop.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_keyconvert.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_mem.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_sdev.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_stdio.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_threads.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_timer.o \
$(ZCORE_GUI_PATH)/GUI/adapter/zcore_lcd.o
FWKERBEL_ADAPTOR_OBJS = $(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_adaptor/fw_adapter.o
FWKERBEL_KERNEL_OBJS = $(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_alarm.o \
$(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_ams.o \
$(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_comm.o \
$(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_i18n.o \
$(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_pub.o \
$(ZCORE_GUI_PATH)/fwkerbel/fwkerbel_kernel/fw_spsm.o
ZCORE_FONTRES_OBJS = $(ZCORE_GUI_PATH)/zcore-fontres/Rawfont_d_8x16-iso8859-1.o \
$(ZCORE_GUI_PATH)/zcore-fontres/rbf-fixed-rrncnn-6-11-9ISO8859-1.o \
$(ZCORE_GUI_PATH)/zcore-fontres/rbf-fixed-rrncnn-7-12-10ISO8859_1.o \
$(ZCORE_GUI_PATH)/zcore-fontres/Rawfont_d_song-12-gb2312.o \
$(ZCORE_GUI_PATH)/zcore-fontres/Rawfont_d_song-24-gb2312.o \
$(ZCORE_GUI_PATH)/zcore-fontres/RawFont_d_song-16-gb2312.o \
$(ZCORE_GUI_PATH)/zcore-fontres/zcore_fontconfig.o
ZCORE_OS_OBJS = $(ZCORE_OS_PATH)/src/os/os_adapter.o \
$(ZCORE_OS_PATH)/src/os/os_file.o \
$(ZCORE_OS_PATH)/src/os/os_memory.o \
$(ZCORE_OS_PATH)/src/os/os_mutex.o \
$(ZCORE_OS_PATH)/src/os/os_queue.o \
$(ZCORE_OS_PATH)/src/os/os_sema.o \
$(ZCORE_OS_PATH)/src/os/os_thread.o \
$(ZCORE_OS_PATH)/src/os/os_list.o \
$(ZCORE_OS_PATH)/src/os/os_timer.o
ZCORE_PNG_OBJS = $(ZCORE_PNG_PATH)/src/png/lib_png.o \
$(ZCORE_PNG_PATH)/src/png/pngerror.o \
$(ZCORE_PNG_PATH)/src/png/pnggccrd.o \
$(ZCORE_PNG_PATH)/src/png/pngget.o \
$(ZCORE_PNG_PATH)/src/png/pngmem.o \
$(ZCORE_PNG_PATH)/src/png/pngpread.o \
$(ZCORE_PNG_PATH)/src/png/pngread.o \
$(ZCORE_PNG_PATH)/src/png/pngrio.o \
$(ZCORE_PNG_PATH)/src/png/pngrtran.o \
$(ZCORE_PNG_PATH)/src/png/pngrutil.o \
$(ZCORE_PNG_PATH)/src/png/pngset.o \
$(ZCORE_PNG_PATH)/src/png/pngtest.o \
$(ZCORE_PNG_PATH)/src/png/pngtrans.o \
$(ZCORE_PNG_PATH)/src/png/pngvcrd.o \
$(ZCORE_PNG_PATH)/src/png/pngwio.o \
$(ZCORE_PNG_PATH)/src/png/pngwrite.o \
$(ZCORE_PNG_PATH)/src/png/pngwtran.o \
$(ZCORE_PNG_PATH)/src/png/pngwutil.o
ZCORE_GZIP_OBJS = $(ZCORE_GZIP_PATH)/src/infblock.o \
$(ZCORE_GZIP_PATH)/src/infcodes.o \
$(ZCORE_GZIP_PATH)/src/inffast.o \
$(ZCORE_GZIP_PATH)/src/inflate.o \
$(ZCORE_GZIP_PATH)/src/inftrees.o \
$(ZCORE_GZIP_PATH)/src/infutil.o \
$(ZCORE_GZIP_PATH)/src/trees.o \
$(ZCORE_GZIP_PATH)/src/uncompr.o \
$(ZCORE_GZIP_PATH)/src/zutil.o \
$(ZCORE_GZIP_PATH)/src/deflate.o \
$(ZCORE_GZIP_PATH)/src/gzio.o \
$(ZCORE_GZIP_PATH)/src/crc32.o \
$(ZCORE_GZIP_PATH)/src/adler32.o \
$(ZCORE_GZIP_PATH)/src/compress.o \
OBJS = $(GUI_GDI_OBJS) \
$(GUI_OBJS) \
$(GUI_WM_OBJS) \
$(GUI_CTRL_OBJS) \
$(GUI_EFFECT_OBJS) \
$(GUI_BMP_OBJS) \
$(GUI_ADAPTER_OBJS) \
$(FWKERBEL_ADAPTOR_OBJS) \
$(FWKERBEL_KERNEL_OBJS) \
$(ZCORE_FONTRES_OBJS) \
$(ZCORE_PNG_OBJS) \
$(ZCORE_OS_OBJS) \
$(ZCORE_GZIP_OBJS)
#*******************************************************************************
# include path
#*******************************************************************************
CFLAGS += -I$(ZCORE_OS_PATH)/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/wm/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/adapter/Linux/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/bmp/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/ctrl/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/gdi/inc \
-I$(ZCORE_PATH)/src/zCore/src/fwkernel/inc \
-I$(ZCORE_PATH)/src/zCore/src/fwkernel/adaptor/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/effect/inc \
-I$(ZCORE_PATH)/src/zCore/inc/gui \
-I$(ZCORE_PATH)/src/zCore/inc/gal \
-I$(ZCORE_PATH)/src/zCore/inc/os \
-I$(ZCORE_PATH)/inc/zCore/kernel \
-I$(ZCORE_PATH)/inc/zCore/os \
-I$(ZCORE_PATH)/src/zCore/src/gui/font/Bitmap_font/inc \
-I$(ZCORE_PATH)/src/zCore/src/gui/font/ttf_font/inc \
-I$(ZCORE_PATH)/inc/zCore/gui \
-I$(ZCORE_PATH)/inc/zCore/gui/ctrl \
-I$(ZCORE_PATH)/inc/zCore/gui/effect \
-I$(ZCORE_PATH)/inc/zCore/gui/ext \
-I$(ZCORE_OS_PATH)/inc \
-I$(ZCORE_PNG_PATH)/inc \
-I$(ZCORE_GZIP_PATH)/inc
#*******************************************************************************
# include path
#*******************************************************************************
CFLAGS +=
#*******************************************************************************
# macro definition
#*******************************************************************************
AM_CFLAGS = -Wundef \
-Wstrict-prototypes \
-Wno-trigraphs
AM_CPPFLAGS = -D__packed__= \
-DIMAGE_APPS_PROC \
-DFEATURE_Q_SINGLE_LINK \
-DFEATURE_Q_NO_SELF_QPTR \
-DFEATURE_LINUX \
-DFEATURE_NATIVELINUX
CFLAGS += -O0 -g $(AM_CFLAGS) $(AM_CPPFLAGS)
#*******************************************************************************
# library
#*******************************************************************************
LDLIBS += -lpthread -lm
#*******************************************************************************
# so flags
#*******************************************************************************
#*******************************************************************************
# targets
#*******************************************************************************
all: $(LIB) $(LIBBITMAPFONT) $(LIBTTFFONT)
$(LIB): $(OBJS)
$(AR) -rv $@ $(OBJS)
$(RANLIB) $@
$(LIBBITMAPFONT): $(GUI_FONT_OBJS)
$(AR) -rv $@ $(GUI_FONT_OBJS)
$(RANLIB) $@
$(LIBTTFFONT): $(GUI_TTF_FONT_OBJS)
$(AR) -rv $@ $(GUI_TTF_FONT_OBJS)
$(RANLIB) $@
romfs:
clean:
-rm -f $(SO) $(LIB) $(LIBBITMAPFONT) $(LIBTTFFONT) *.elf *.gdb *.o $(OBJS) $(GUI_FONT_OBJS) $(GUI_TTF_FONT_OBJS)
else
all:
romfs:
clean:
endif