autotools工具
[原创] 学习使用autotools
doc.guandang.net 作者:redor 发表于:2008-10-21 17:53:02
【发表评论】【查看原文】【C/C++讨论区】【关闭】
最近开始学习linux c开发,对autotools比较感兴趣,所以找了一些国外的文档看了看,然后自己做了小例子,在这里跟大家分享。
1、准备:
需要工具autoscan aclocal autoheader automake autoconf make 等工具. 2、测试程序编写:
建立目录:mkdir include src 编写程序:include/str.h
#include <stdio.h>
int str(char *string);
编写程序:src/str.c
#include "str.h"
//print string
int str(char *string){
printf("\n----PRINT STRING----\n\"%s\"\n",string);
return 0; }
//interface of this program
int main(int argc , char **argv){
char str_read[1024];
printf("Please INPUT something end by [ENTER]\n");
autotools 的使用 2010-04-07 15:05:39 分类:软件开发 标签:autotools字号大中小订阅 在较大项目中, 如果手动维护 Makefile, 那将是一件复杂并痛苦的...
AutoTools Autoconf requirements AC_INIT(package, version, bug-report-address) information on the package checks for programs checks for libraries checks for ...
autotools_IT/计算机_专业资料。linux下的autotools文档 自动生成makefile 快速入门背景Linux下,工程管理器 Make 是可用于自动编 下 链接程序的实用工具. 译,链接...
Autotools系列工具安装_计算机软件及应用_IT/计算机_专业资料。LinuxAutotools 系列工具安装过程 一、VMware Workstation 环境下文件共享; (1)菜单栏“VM” ,选择...
autotools 学习笔记_计算机软件及应用_IT/计算机_专业资料。将autotools的文档翻译了第一章。autotools 1. 样例 hello.c #include <stdio.h> main(){ printf...
Dev110403 autoTools 入门简记 Email: Blog zcatt@163.com http://zcatt.blog.chinaunix.net 内容提要 一个 helloworld 例子,简要介绍 auomake,autoconf 等 auto...
使用 AutoTools 来生成 Makefile 文件 3.1 创建 Makefile.am 文件 $ vim Makefile.am Note:_SOURCES、CPPFLAGS etc 之前的名字要和 bin_PROGRAMS 一致,因为...
autotools_IT/计算机_专业资料。介绍autotools的使用今日推荐 四季养生 中医养生与保健 中医养生知识大全 女人养生之道89份文档 爆笑大撞脸...
autotools用法简介_学习计划_计划/解决方案_实用文档。对初学UNIX学者非常有帮助GNU AUTOTOOLS 简介 1.介绍 大部分时候,你从网上下载了一个开放源代码的软件,在...
热门文档