【filehead: 】
【keyword:】
【status: underwriting】
1. Under the software engineering's guide, using the the felicitous library, building every module code.
2. using the autotools to manage the project.
2.1 write 【Makefile.am】 / 【configure.in】 file;
2.2 write 【acinclude.m4】 file to include the check macro;
2.3 run 【aclocal】 command, get the file aclocal.m4.
=====================
<< refer
C.1 aclocal
The aclocal
program creates the file `aclocal.m4' by combining stock installed macros, user defined macros and the contents of `acinclude.m4' to define all of the macros required by `configure.in' in a single file. aclocal
was created as a fix for some missing functionality in Autoconf, and as such we consider it a wart. In due course aclocal
itself will disappear, and Autoconf will perform the same function unaided.
user input files optional input process output files
================ ============== ======= ============
acinclude.m4 - - - - -.
V
.-------,
configure.in ------------------------> |
>> end
2.4 run 【autoconf】 gets the 【configure】 file;
2.5 run 【automake】 gets 【makefile.in】 from 【makefile.am】
3. write the 【ReadMe】 and include the 【copyright】 file, and something else.
4. OK. User can build and install the project using
./configure
make
make install
5. Example: