Chinaunix首页 | 论坛 | 博客
  • 博客访问: 213348
  • 博文数量: 33
  • 博客积分: 1690
  • 博客等级: 上尉
  • 技术积分: 381
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-27 18:57
个人简介

吟游天地间,隐没市井中..

文章分类
文章存档

2014年(1)

2009年(6)

2008年(26)

我的朋友

分类: LINUX

2008-09-02 11:00:07

第一步:在源代码目录下执行autoscan,这时候目录下生成了configure.scan,以它为蓝本,创建一个confiure.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)


第二步:执行aclocal

第三步:执行autoconf

第四步:编辑一个Makefile.am

AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=helloworld
helloworld_SOURCES=helloworld.c


第五步:执行automake --add-missing

第六步:
执行./configure生成Makefile

到此大功告成了,一个标准的Makefile就生成了!
阅读(1276) | 评论(0) | 转发(0) |
0

上一篇:二分查找

下一篇:Appweb在uclinux上的移植

给主人留下些什么吧!~~