auto make 简单示例(初级)
创建目录 devel:
# mkdir devel
# cd devel
创建源文件 hello.c
# vi hello.c
代码如下:
#include <stdlib.h>
int main(int argc, char * argv[])
{
pirntf(”hello gnu\n”);
return 0;
}
当前目录文件:
#ls
hello.c
运行autoscan
#autoscan
autom4te: configure.ac: no such file or directory
autoscan: /usr/bin/autom4te failed with exit status: 1
#ls
autoscan.log configure.scan hello.c
将configure.scan命名为configure.in(或者configure.ac)
#mv configure.scan configure.in
编辑configure.in文件
#vi configrue.in
内容为:
# [...]