25.4.2 A Makefile.am for DLLs

back: dll support with gnu autotools
forward: a configure.in for dlls
 
fastback: a configure.in for dlls
up: dlls with libtool
fastforward: package installation
top: autoconf, automake, and libtool
contents: table of contents
index: index
about: about this document

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


GNU Autoconf, Automake and Libtool
GNU Autoconf, Automake, and Libtool
ISBN: 1578701902
EAN: 2147483647
Year: 2002
Pages: 290

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net