File: README_make.txt

package info (click to toggle)
allegro5 2%3A5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,032 kB
  • sloc: ansic: 120,340; cpp: 15,707; objc: 4,805; python: 2,915; java: 2,195; sh: 887; xml: 86; makefile: 49; perl: 37; pascal: 24
file content (57 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Building Allegro with make
==========================

This document discusses building Allegro using CMake and GNU make from a
terminal window.  This document applies to Unix-like operating systems such as
Linux, and also Mac OS X and MinGW.

1. Unpack Allegro.

2. Create a build directory under the Allegro directory and go there.

        cd /path/to/allegro
        mkdir build
        cd build

3. Run `cmake` with whatever options you want.  See README_cmake.txt
for details about options you can set.

        cmake ..

Here ".." is the path to the Allegro directory.

Alternatively, you can use `ccmake` (Unix) or `cmake-gui` (Windows) to bring up
an interactive option selector. e.g. `ccmake ..` or `cmake-gui ..`.

You may need to tell CMake which "generator" to use; cmake -h will tell you
which generators are available.  We recommend using the Makefile generator
(default everywhere except Windows).  On MinGW you will have a choice between
"MinGW Makefiles" or "MSYS Makefiles".  If `sh.exe` is on your PATH then you
must use "MSYS Makefiles", otherwise use "MinGW Makefiles".

More examples:

        cmake .. -G "MinGW Makefiles"

        cmake .. -G "MSYS Makefiles"

4. Now, if that step was successful you can run `make` to build Allegro.
On MinGW your make might actually be called `mingw32-make`.

        make

Since multicore processors are common now, you might wish to speed that up by
passing a "-j<n>" option, where <n> is the number of parallel jobs to spawn.


5. You may optionally install Allegro into your system path with the install
target.

        make install

MinGW users might need to set the MINGDIR environment variable first.

The DESTDIR variable is supported for staged installs.

        make install DESTDIR=/tmp/allegro-package