Difference between revisions of "Autotools"

From HCL
Jump to: navigation, search
Line 3: Line 3:
 
http://sources.redhat.com/autobook/autobook/autobook.html
 
http://sources.redhat.com/autobook/autobook/autobook.html
  
Manuals
+
== Manuals ==
 
* http://www.gnu.org/software/autoconf/manual/index.html
 
* http://www.gnu.org/software/autoconf/manual/index.html
 
* http://www.gnu.org/software/automake/manual/index.html
 
* http://www.gnu.org/software/automake/manual/index.html
 
* http://www.gnu.org/software/libtool/manual/index.html
 
* http://www.gnu.org/software/libtool/manual/index.html
 +
 +
== Libraries ==
 +
* includes (for the include directory): <code>include_HEADERS = ...</code>
 +
* library: static <code>lib_LIBRARIES = library.a</code> or dynamic <code>lib_LTLIBRARIES = library.la</code>
 +
* sources (internal C data structures and C++ template classes): <code>library_X_SOURCES = library.h ...</code>, where <code>X</code> = <code>a</code> or <code>la</code>
 +
** <code>library.h</code> is a [http://en.wikipedia.org/wiki/Precompiled_header precompiled header] (contains common headers and symbols), which is to be included in most of source files of the library
 +
 +
For example, see:
 +
* http://hcl.ucd.ie/repos/CPM/trunk/MPIBlib/benchmarks/Makefile.am
 +
* http://hcl.ucd.ie/repos/CPM/trunk/MPIBlib/collectives/Makefile.am
 +
 +
== Config headers ==

Revision as of 16:08, 16 February 2010

http://en.wikipedia.org/wiki/Autoconf

http://sources.redhat.com/autobook/autobook/autobook.html

Manuals

Libraries

  • includes (for the include directory): include_HEADERS = ...
  • library: static lib_LIBRARIES = library.a or dynamic lib_LTLIBRARIES = library.la
  • sources (internal C data structures and C++ template classes): library_X_SOURCES = library.h ..., where X = a or la
    • library.h is a precompiled header (contains common headers and symbols), which is to be included in most of source files of the library

For example, see:

Config headers