| www.delorie.com/gnu/docs/glibc/libc_697.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The process of building the library is driven by the makefiles, which
make heavy use of special features of GNU make. The makefiles
are very complex, and you probably don't want to try to understand them.
But what they do is fairly straightforward, and only requires that you
define a few variables in the right places.
The library sources are divided into subdirectories, grouped by topic.
The `string' subdirectory has all the string-manipulation functions, `math' has all the mathematical functions, etc.
Each subdirectory contains a simple makefile, called `Makefile',
which defines a few make variables and then includes the global
makefile `Rules' with a line like:
include ../Rules |
The basic variables that a subdirectory makefile defines are:
subdir
headers
routines
aux
routines for
modules that define functions in the library, and aux for
auxiliary modules containing things like data definitions. But the
values of routines and aux are just concatenated, so there
really is no practical difference.
tests
others
install-lib
install-data
install
install-data are
installed in the directory specified by `datadir' in
`configparms' or `Makeconfig'. Files listed in install
are installed in the directory specified by `bindir' in
`configparms' or `Makeconfig'.
distribute
distribute if there are files used in an unusual way
that should go into the distribution.
generated
extra-objs
others or tests.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |