CMake is a cross-platform tool that can generate native makefiles and workspaces that can be used in the compiler environment of your choice. Allegro 4.4 uses CMake as its build system. The process is essentially the same for all compilers. You will need CMake 2.6 or later. The CMake web site is http://www.cmake.org/.
$ mkdir Build
$ cd Build
Examples (you only need one):
$ cmake ..
$ cmake -G "MinGW Makefiles" ..
On Unix/Mac you can use `ccmake` which will present you with a console program to adjust the options. On Windows you can use `cmake-gui` instead (it should be listed in the Start menu or on the desktop).
If you are missing any dependencies, CMake will tell you at this point. You can continue without building all of the addons, or install the dependencies and retry. You may need to delete the `CMakeCache.txt` file first.
$ make install
DESTDIR is supported, e.g.
$ make install DESTDIR=/tmp/package-allegro
Here are some build options you may be interested in. You can set them on
the command line like so, or using one of the front ends:
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
If you are installing multiple configurations in a row, we recommend installing the Release or RelWithDebInfo configuration last, so that the installed allegro-config script will default to that configuration.
If you want both kinds, you will need to run cmake twice and install twice.
Many of the addons make use of additional libraries. They are not required to build Allegro, but functionality may be disabled if they are not present.
Windows users may find some precompiled binaries from http://gnuwin32.sourceforge.net/. You need to get the bin and lib packages. The bin packages contain DLLs, and the lib packages contain the headers and import libraries.
Mac users may find some dependencies in Fink or MacPorts. http://www.finkproject.org/ and http://www.macports.org/
Linux users likely have all the dependencies already. If your distribution uses separate development packages, they will need to be installed. The packages are probably named *-dev or *-devel.
Please see the other files in the docs/build directory for additional information specific to each platform.