GNU Autoconf, Automake, and Libtool

 

First of all we will autoconfiscate (66) the source files above with a minimal setup:

`Makefile.am' is used to generate the `Makefile.in' template for the `configure' script:

 

## Process this file with automake to produce Makefile.in. lib_LTLIBRARIES = libhello.la libhello_la_SOURCES = hello.c libhello_la_LDFLAGS = -no-undefined -version-info 0:0:0 include_HEADERS = hello.h bin_PROGRAMS = hello hello_SOURCES = main.c hello_LDADD = libhello.la

The new feature introduced in this file is the use of the `-no-undefined' flag in the libhello_la_LDFLAGS value. This flag is required for Windows DLL builds. It asserts to the linker that there are no undefined symbols in the `libhello.la' target, which is one of the requirements for building a DLL outlined earlier. See section 11.2.1 Creating Libtool Libraries with Automake.

For an explanation of the contents of the rest of this `Makefile.am' , See section Introducing GNU automake.

This document was generated by Gary V. Vaughan on May, 24 2001 using texi2html

Категории