Difference between revisions of "Autotools"

From HCL
Jump to: navigation, search
(Config headers)
Line 18: Line 18:
 
* http://hcl.ucd.ie/repos/CPM/trunk/MPIBlib/collectives/Makefile.am
 
* http://hcl.ucd.ie/repos/CPM/trunk/MPIBlib/collectives/Makefile.am
  
== Config headers ==
+
== Configured headers ==
 +
Configured headers (created from *.h.in) must not be included into the package, that is <code>include_HEADERS</code> or <code>*_SOURCES</code>
 +
* <code>nodist_include_HEADERS = *.h</code> for the configured headers as includes
 +
* <code>nodist_*_SOURCES = *.h</code> for the configured headers as sources

Revision as of 16:16, 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:

Configured headers

Configured headers (created from *.h.in) must not be included into the package, that is include_HEADERS or *_SOURCES

  • nodist_include_HEADERS = *.h for the configured headers as includes
  • nodist_*_SOURCES = *.h for the configured headers as sources