make项目管理器使用

来源:互联网 发布:深圳方维网络 编辑:程序博客网 时间:2024/06/07 10:09

home文件夹下有两个文件hello.c,hello.h
这里写图片描述

执行autoscan, 生成如下文件
这里写图片描述

修改configure.scan文件,之后更改名字为configure.ac,修改内容如下
这里写图片描述

执行aclocal
这里写图片描述

执行autoconf
这里写图片描述

执行autoheader
这里写图片描述

创建脚本配置文件makefile.am,输入以下内容
这里写图片描述

使用automake -a命令自动添加脚本,生成configure.in
这里写图片描述

运行configure将makefile.in文件生成最终的makefile文件
这里写图片描述

执行make hello并运行查看结果
这里写图片描述

结果正确,运行完成!

原创粉丝点击