automake autoconf学习笔记
来源:互联网 发布:夜神模拟器mac版问题 编辑:程序博客网 时间:2024/05/17 00:54
1建目录
mkdir hello
cd hello
2建hello.c
#include <stdio.h>
int main(int argc, char** argv){
printf("%s", 'Hello, Linux World!\n");
return 0;
}
3autoscan
4将autoscan生成的configure.scan改成configure.in
5修改configure.in
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT(helloworld.c)
AM_INIT_AUTOMAKE(helloworld, 1.0)
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT(Makefile)
6aclocal
7autoconf
8建Makefile.am
内容如下:
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=hello
hello_SOURCES=hello.c
9automake --add-missing
10./configure
11make
12./hello
学习自网页:http://www.laruence.com/2009/11/18/1154.html
mkdir hello
cd hello
2建hello.c
#include <stdio.h>
int main(int argc, char** argv){
printf("%s", 'Hello, Linux World!\n");
return 0;
}
3autoscan
4将autoscan生成的configure.scan改成configure.in
5修改configure.in
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT(helloworld.c)
AM_INIT_AUTOMAKE(helloworld, 1.0)
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT(Makefile)
6aclocal
7autoconf
8建Makefile.am
内容如下:
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=hello
hello_SOURCES=hello.c
9automake --add-missing
10./configure
11make
12./hello
学习自网页:http://www.laruence.com/2009/11/18/1154.html
0 0
- automake autoconf 学习笔记
- autoconf/automake学习笔记
- automake autoconf学习笔记
- automake / autoconf 学习笔记
- Linux Autoconf/AutoMake学习笔记
- Linux Autoconf/AutoMake学习笔记
- autoconf和automake学习笔记
- autoconf/automake 使用笔记
- GNU hello学习笔记(1)——autoconf和automake
- GNU hello学习笔记(1)——autoconf和automake
- autotools automake autoconf libtool 笔记
- autotools automake autoconf libtool 笔记
- automake和autoconf学习小结
- Automake/Autoconf
- automake & autoconf
- Autoconf/Automake
- autoconf & automake
- automake autoconf
- WAR JAR & EAR
- bio中储存私有数据
- c语言 解决汉诺塔问题
- object references an unsaved transient instance - save the transient instance before flushing:
- 5种开源虚拟化技术推荐
- automake autoconf学习笔记
- Electric Power System simulations using R
- shell十三问之3:别人echo、你也echo,是问echo知多少?
- 搜索推广营销五步曲第一步:目标确定
- 深入理解Redis中的主键失效及其实现机制
- 德语第一天
- 如果你也23岁
- 基于xmpp openfire smack 开发(三)群聊发送图片
- 给定一个字符串,字符串中的*可以替换成0或1,输出所有可能的结果