gmqcc/INSTALL

63 lines
1.7 KiB
Text
Raw Normal View History

2012-11-18 17:54:10 +00:00
Installing gmqcc
1. Prerequisites
- A C-Compiler such as gcc or clang
2013-06-16 07:16:44 +00:00
- GNU Make or BSD Make
2012-11-18 17:54:10 +00:00
2. Compilation
2013-06-16 07:16:44 +00:00
If using GNU make program
2012-11-18 17:54:10 +00:00
make
2013-06-16 07:51:55 +00:00
If using BSD make program, the BSDmakefile should be
used instead when you invoke make, if however it ignores BSDmakefile
you can supply it with -f.
2013-06-16 07:16:44 +00:00
2013-06-16 07:51:55 +00:00
make -f BSDmakefile
2013-06-16 07:16:44 +00:00
2012-11-18 17:54:10 +00:00
If no error appears, the following binary files will have been
created:
- gmqcc
- qcvm
2013-06-16 07:51:55 +00:00
- gmqpak
2012-11-18 17:54:10 +00:00
3. Installation
The `install' target will install the 2 binaries to /usr/local/bin
by default.
The Makefile honors the following variables:
- DESTDIR: The installation directory root.
- PREFIX: The installation prefix, default: /usr/local
- BINDIR: Directory for binary executables,
deafult: $PREFIX/bin
To install to /usr/local run:
make install
To install to /usr run:
make PREFIX=/usr install
To install to a package-staging directory such as $pkgdir when
2012-12-26 20:57:26 +00:00
writing a build script file:
2012-11-18 17:54:10 +00:00
make DESTDIR=$pkgdir install
2012-12-26 20:57:26 +00:00
ArchLinux PKGBUILDs (release and git build) can be found in the
2013-06-16 07:16:44 +00:00
respective folders in ./distro/archlinux
ArchBSD PKGBUILDs (release and git build) can be found in the
respective folders in ./distro/archbsd
Slackware SlackBuilds (git build) can be found in ./distro/slackware
Gentoo ebuilds (release) can be found in ./distro/gentoo, as well
as a README explaining how to build them
Debian archives (git build) can be created invoking make in
./distro/deb
Fedora spec files (release) can be found in ./distro/fedora, as well
as a README explaining how to build them.