Autotools





Created:2003-03-09
Last updated:2003-07-29

[-] 1. 基本サイクル

基本ソース作成(*.h *.c ...)         [subs*/]Makefile.am
  ↓                                    │
autoscan                                │
  ↓                                    │
configure.scan                          │
  ↓copy                                │
configure.ac    ←┐                    │
  │  │edit      │                    │
  │  └─────┘                    │
  ↓                                    ↓
aclocal -I etc                      automake --foreign --add-missing --copy
  ↓                                    ↓
aclocal.m4                          [subs*/]Makefile.in
  ↓                                    │
autoheader                              │
  ↓                                    │
config.h.in                             │
  |←-─────────────────┘
autoconf
  ↓                                    
./configure   # enduser が tarball を untar したときと同じ状態
  ↓                                    
[subs*/]Makefile, config.h

[-] 2. Package 作成

make dist

[-] 3. 最小規模の GNU Autotools プロジェクト

  1. source file 作成:
    main.c foo.c foo.h nly.c scanner.l parser.y
  2. Makefile.am 記述
  3. configure.in 記述
  4. configure の生成
    $ aclocal
    $ autoconf
  5. configure の実行
    $ ./configure
  6. make の実行
    $ make





Generated by juli 2.3.2