作为编译autotools程序的模板。
CROSS_TOOL :=/usr/local/arm-linux/bin/arm-linux
CC=$(CROSS_TOOL)gcc
AR=$(CROSS_TOOL)ar
LD=$(CROSS_TOOL)g++
STRIP=$(CROSS_TOOL)strip
CPLUSPLUS=$(CROSS_TOOL)g++
LIBRARY_LINK = $(CROSS_TOOL)ld -o
CUR_DIR:=$(PWD)
CURL_SRC:=curl-7.32.0
CURL_BUILD:=build_path
CURL_INSTALL:=install_path
depend:
mkdir -p ${CUR_DIR}/${CURL_BUILD}/share
#cp config.site ${CUR_DIR}/${CURL_BUILD}/share
mkdir -p ${CUR_DIR}/${CURL_INSTALL}
cd ${CUR_DIR}/${CURL_BUILD} && ../${CURL_SRC}/configure --host=arm-linux --prefix=${CUR_DIR}/${CURL_INSTALL}
libs:
cd ${CUR_DIR}/${CURL_BUILD} && make
install:
cd ${CUR_DIR}/${CURL_BUILD} && make install
clean:
cd ${CUR_DIR}/${CURL_BUILD} && make clean
rm -rf ${CUR_DIR}/${CURL_INSTALL}
rm -rf ${CUR_DIR}/${CURL_BUILD}
.PHONY:depend libs clean
阅读(1668) | 评论(0) | 转发(0) |