]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - BUILDING.md
Save MapBlocks in SQLite3 database; Redesign MapBlock loading & sending code
[dragonblocks_alpha.git] / BUILDING.md
1 # Building instructions
2
3 GNU make is used for compiling. The code and the Makefile are located in the src/ directory.
4
5 ## Dependencies
6 To build anything you need g++ and GNU make.
7
8 ```bash
9 sudo apt install build-essential make
10 ```
11
12 The development versions OpenGL, GLFW3, GLEW are required to build the client.
13
14 ```bash
15 sudo apt install libgl1-mesa-dev libglfw3-dev libglew-dev
16 ```
17
18 For building the server, the SQLite3 development library is required.
19
20 ```bash
21 sudo apt install libsqlite3-dev
22 ```
23
24 Don't forget to pull the submodules before building.
25
26 ``bash
27 git submodule update --init
28 ```
29
30 ## Available targets
31 - `all` (default)
32 - `Dragonblocks`
33 - `DragonblocksServer`
34 - `clean`
35 - `clobber`
36
37 The debug flag (`-g`) is set by default (RELEASE=TRUE will disable it).
38
39 ## Release
40
41 ```bash
42 ./snapshot.sh
43 ```
44 This script will create a snapshot zipfile.