]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - INSTALL
Ignore most memory comparisions by validating the lengths are the same first. Become...
[xonotic/gmqcc.git] / INSTALL
1                            Installing gmqcc
2
3 1. Prerequisites
4     - A C-Compiler such as gcc or clang
5     - GNU Make. This document will assume GNU-Make to be executed via
6       `make'. On BSD systems you probably have to use `gmake' instead.
7
8 2. Compilation
9     Run the GNU make program `make' or `gmake'.
10
11         make
12
13     If no error appears, the following binary files will have been
14     created:
15         - gmqcc
16         - qcvm
17
18 3. Installation
19     The `install' target will install the 2 binaries to /usr/local/bin
20     by default.
21     The Makefile honors the following variables:
22
23         - DESTDIR: The installation directory root.
24         - PREFIX:  The installation prefix, default: /usr/local
25         - BINDIR:  Directory for binary executables,
26                    deafult: $PREFIX/bin
27
28     To install to /usr/local run:
29
30         make install
31
32     To install to /usr run:
33
34         make PREFIX=/usr install
35
36     To install to a package-staging directory such as $pkgdir when
37     writing a build script file:
38
39         make DESTDIR=$pkgdir install
40
41
42
43     ArchLinux PKGBUILDs (release and git build) can be found in the
44     respective folders in ./distro/arch