next up previous
Next: Compiling your Projects Up: Compiling the Library Previous: Replacement Functions

Creating the Makefile by hand

The Makefile is automatically generated by the configuration script from the template in Makefile.in. This section explains how the template must be edited into a proper Makefile.

Just copy Makefile.in to Makefile and edit the place-holders for the following values.

CC
Your system's ``C'' compiler.
CFLAGS
The compilation flags to be passed to the compiler. This must include ``-I.'' so that the include files from the local directory are found, and ``-DHAVE_CONFIG_H'' to declare that a configuration file is present.
RANLIB
Set to ``ranlib'' if such a program is available on your system, or to ``:'' (colon) otherwise.
VERSION
A string holding the release number of the library, currently ``0.5''
PATCH
A string holding the patchlevel, currently ``20''.

Some systems do not know Makefiles but offer the concept of a ``project''.2 In this case, create a new project targeting a library and add all source codes to the project. Then, make sure that the include path includes the current directory. Add options to the compiler command so that the symbol ``HAVE_CONFIG_H'' gets defined. Additionally, the symbol ``VERSION'' must be defined as a string holding the release number, currently ``0.5'' and ``PATCH'' must be defined as a string holding the patch level, currently ``20''.

On 16-bit systems, the package should be compiled using the ``Large'' memory model, so that more than just 64k data space is available.


next up previous
Next: Compiling your Projects Up: Compiling the Library Previous: Replacement Functions
2004-07-27