Linux application Development-autotools
The use of a tool
In a case-oriented, that is, packaging a hello program
1 Writing HELLO.C
2 AutoScan
3 Change Configure.s the can suffix is called. AC
4 VI configure.ac plus release information and Am_init_automake (release information) and output file name (Makefile)
5 aclocal Generating ACLOCAL.M4 files
6 Autoheader generate the corresponding header file, can not, if not the third line of the Configure.ac file header file information needs to be commented out
7 Autoconf Generating Configure files
8 Writing makefile.am files
Format: bin_programs = (file name to generate) Hello
(file name to generate) Hello_sources = hello.c (source file)
9 Automake--add-missing, you will be prompted to create some file columns such as News,readme,changelog, Automake--add-missing after creation, Build makefile.in file after success
10 execution./configure
11 Execute Make build target file Hello
12 perform the make install into the system
Hello Chengzhi, return to the top level directory to perform Hello success
14 installation is successful, ready for package release
The Dist automatic packaging file, the file name is called the Configure.ac file in its own configuration of the release information, the success of the package, can be published
A flowchart of the official website of the process
There is also a tool table
Linux Application Development-autotools