Linux中autoconf和automake生成makefile脚本
来源:互联网 发布:mac能玩什么steam游戏 编辑:程序博客网 时间:2024/06/06 02:48
一 过程
二 脚本
EXIT_VALUE=0
# setp1
autoscan
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo autoscan FAILED
exit $EXIT_VALUE
fi
#step2
rename configure.scan configure.in configure.scan
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo autoscan FAILED
exit $EXIT_VALUE
fi
#step3
rm -f configure
find . -name "*.cache" -exec rm -rf {} \;
libtoolize --force
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo libtoolize FAILED
exit $EXIT_VALUE
fi
#step4
aclocal
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo aclocal FAILED
exit $EXIT_VALUE
fi
#step5
automake
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo automake FAILED
exit $EXIT_VALUE
fi
#step6
autoconf -f
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo autoconf FAILED
exit $EXIT_VALUE
fi
#step7
./configure --enable-optimized=yes
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo configure FAILED
exit $EXIT_VALUE
fi
#step7
make -j 4
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo make FAILED
exit $EXIT_VALUE
fi
#step8
make -j 4 install
STATUS=$?
if [ $STATUS -ne 0 ] ; then
EXIT_VALUE=1
echo make install FAILED
exit $EXIT_VALUE
fi
exit $EXIT_VALUE
三 参考
http://www.cnblogs.com/itech/archive/2009/05/25/1488983.html
完!
- Linux中autoconf和automake生成makefile脚本
- Linux中autoconf和automake生成makefile脚本
- autoconf和automake生成makefile
- Autoconf和Automake生成Makefile
- autoconf 和 automake 生成 Makefile
- Linux下使用autoconf和automake生成Makefile
- autoconf/automake 生成 makefile
- 例解 autoconf 和 automake 生成 Makefile 文件
- autoconf 和automake生成Makefile文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- autoconf 和automake生成Makefile文件
- autoconf 和automake生成Makefile文件
- autoconf 和automake生成Makefile文件
- 例解 autoconf 和 automake 生成 Makefile 文件
- Linux系统用户管理
- SED单行脚本快速参考[同时包含awk实现]
- [C++写好函数和类][1]目录索引
- Perl资料
- Perl IDE之Perl Express和Eclipse+EPIC+PadWalker
- Linux中autoconf和automake生成makefile脚本
- Windows下运行XServer
- perl正则表达式[转]
- 数据恢复+删除+重新分区
- Perl基础
- perl的subroutines
- perl的package和module
- perl读写文件和命令行解析
- perl的array和map/hash