ans42

assert(random() == 0x2a)

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1 Motivation

Understand the workflow of autoconf and automake

2 Workflow

2.1 Simplified Workflow

Our target is to generate one or several Makefile, two steps involved:

  • you need to supply one configure.in (or configure.ac) file which will include target Makefile paths list to generate a configure script, commonly, each target Makefile corresponds to one Makefile.am file.
  • Then you could use ./configure command to generate the Makefile included in configure.in from corresponding Makefile.am.

The following figure visualize this process:

autotools-workflow-simple.png

2.2 Full Workflow

Normally:

  • you modify an auto-generated configure.scan to get configure.{in/ac}.
  • to generate configure script, you need to generate aclocal.m4 first.

The follw figure shows the full workflow:

autotools-workflow.png

posted on 2011-06-24 18:20  ans42  阅读(183)  评论(0编辑  收藏  举报