1############################################################################################ 2# 3# Makefile For libpng 4# 5# Author: Kathy Lai 6# Date: 2014.05.28 7# 8# Description: 9# It will be used by xAgent/readycloud? implementation. 10# We will use the version libpng-1.2.50 11# 12############################################################################################# 13include ../config.mk 14 15LIBPNG_DIR=libpng-1.2.50 16SUBDIRS = libpng-1.2.50 17 18LIBPNG_DIR_PATH=$(shell pwd) 19 20HOST="arm-linux" 21HOST_COMPILE=$(HOST)- 22CROSS_COMPILE=arm-uclibc-linux-2.6.36- 23 24all: libpng_conf libpng 25 26 27libpng_conf: 28 cd $(LIBPNG_DIR); \ 29 ./configure --host=$(HOST) CC=$(CROSS_COMPILE)gcc 30 31libpng: 32 for i in ${SUBDIRS}; do \ 33 (cd $$i; make) || exit 1; \ 34 done 35 cp $(LIBPNG_DIR_PATH)/$(LIBPNG_DIR)/.libs/libpng.* $(LIBPNG_DIR_PATH)/build 36 37libpng_clean: 38 cd $(LIBPNG_DIR); \ 39 for i in ${SUBDIRS}; do \ 40 (cd $$i; make clean); \ 41 done 42 43clean: libpng_clean 44 rm -rf $(LIBPNG_DIR_PATH)/build/* 45 rm -rf $(TARGETDIR)/usr/lib/libpng.* 46install: 47 install -m 755 $(LIBPNG_DIR_PATH)/build/* $(TARGETDIR)/usr/lib 48 49