automake备忘
来源:互联网 发布:工具书 知乎 编辑:程序博客网 时间:2024/06/06 08:39
1.进入目录
2.autoscan
生成configure.scan
3.mv configure.scan configure.in
4.修改configure.in
加上:
AC_INIT(ProjectName, Version, Email)
AM_INIT_AUTOMAKE(ProjectName, Version)
AC_CONFIG_FILES([Makefile
subdir1/Makefile
subdir2/Makefile])
AC_OUTPUT
5.写Makefile.am
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = ProgramName
ProgramName_SOURCES = main.cpp other.c
6.写autogen.sh
#!/bin/sh
aclocal
autoconf# generate configure
#autoheader
automake --foreign --add-missing --copy # generate Makefile.in
根据项目选择否需要autoheader
7.sh autogen.sh
8.现在可以./configure; make; make install了
- automake备忘
- Autoconf/Automake使用备忘
- automake
- automake
- Automake
- automake
- AutoMake
- automake
- Automake
- automake
- automake
- automake
- automake
- automake
- Automake
- automake
- automake
- automake
- tex入门
- 编码知识小结
- SQL分页存储过程
- 用vim作IDE
- 虚拟化技术分类
- automake备忘
- 常用命令惯用法
- EXT入门
- VMware中用NAT方式实现FreeBsd/Linux上网
- 几个分布式vcs比较
- javascript刷新页面的几种方法
- 音箱 基本知识!
- [转]HTML DOM的nodeType值[试验田]
- xml + xsl +javascript(微软IE) -> html