]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Create Compiling (doc for new release Makefile)
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 7 Feb 2022 03:32:31 +0000 (03:32 +0000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 7 Feb 2022 03:32:31 +0000 (03:32 +0000)
Compiling.md [new file with mode: 0644]

diff --git a/Compiling.md b/Compiling.md
new file mode 100644 (file)
index 0000000..356ef8f
--- /dev/null
@@ -0,0 +1,15 @@
+This page is about compiling the sources included in [stable](https://xonotic.org/download) and [beta](https://beta.xonotic.org/autobuild) releases, and is also applicable when updating by rsync.  
+For development purposes, please see [Repository_Access](Repository_Access).
+
+The release Makefile aims to provide a convenient way to compile for alternative CPU architectures, or to get a build fully optimised for a recent x86 CPU (the official binaries are generic x86_64).  To this end the Makefile defaults to enabling all optimisations that can be used on your current CPU without causing bugs, and to using all available CPU threads.
+
+The builds will be mostly dynamically linked, except for d0_blind_id which is statically linked to ensure reliable player ID support and because distributions don't ship this.
+
+Invoking `make` or `make help` will print the supported targets and config.  
+
+Most people reading this will want `make update-beta; make client`.  
+
+## Build Dependencies
+### Debian
+`build-essential automake libgmp-dev libjpeg-dev libpng-dev libcurl-dev libsdl2-dev`  
+*note that Debian's `libjpeg-dev` depends on `libjpeg62-turbo-dev`*