Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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

25.4.2 A Makefile.am for DLLs

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 February, 8 2006 using texi2html

 
 
  Published under the terms of the Open Publication License Design by Interspire