Based automake to build the project

In the Linux platform, almost all projects are compiled based on Makefile, in a small project, you can hand-written Makefile, but large-scale projects, handwritten Makefile deal with very complex, so it is necessary to build the project using automake

1.autoscan (autoconf):

Scan source code to search for common portability issues, such as checking compiler, libraries, header files, generated files configure.scan, it is a prototype of configure.ac.
Configure.scan then directly to the named configure.ac, and edit: configure.ac

2.aclocal (automake)

The macro has been installed, a user-defined macro and macro files acinclude.m4 configure.ac desired macro file to a file defined centrally in aclocal.m4. aclocal is a perl script.

3.automake

Makefile.in Makefile.am automake will establish a structure defined, then configure script generated Makefile.in files to Makefile

4.autoconf

Configure.ac in the macro expansion, generate the configure script. This process may take to the macro aclocal.m4 defined.

5.configure

./configure generated Makefile

6. Compile

Execution make

problem:

1. If you make time appear libtool version incompatibilities: Do autoreconf -ivf solve
2.LT_INIT: configure.ac script again, if the macro definition exists, the dynamic may provide cross-platform compilation time dynamic linking cross-functional, but needs will be packaged with the required dll and executable programs

Guess you like

Origin blog.51cto.com/14207158/2465162