Makefile.am Howto

David Faure

Revision 0.1 (2005-05-14)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

This is the Makefile.am Howto changed from plain HTML into the .docbook format as used by the kde documentations. You can find the docbook source for the Makefile.am Howto here (index.docbook).


Table of Contents

1. The Makefile.am Howto
Makefile.am for a simple program
bin
*_SOURCES
*_LDADD
*_LDFLAGS
AM_CPPFLAGS
KDE_CXXFLAGS
METASOURCES
Makefile.am for shared libraries
*_LTLIBRARIES
*_LIBADD
*_LDFLAGS
Makefile.am for a plugin / module
Sharing code: convenience libs
Makefile.am for automated tests
Installing data
Uninstalling a desktop file
Icons
Other types of source files
Subdirs
Toplevel directories
Documentation
Translations
Qt-only program
Disabling "final" compilation
Don'ts
Turn Makefile.am into a Makefile
2. Credits and License