]> git.localhorst.tv Git - blank.git/blob - building
392d6093df114cc68b0a102507616332826caedd
[blank.git] / building
1 Dependencies
2 ============
3
4         GLEW, GLM, SDL2, SDL2_image
5
6         CppUnit for tests
7
8 archlinux: pacman -S glew glm sdl2 sdl2_image cppunit
9
10 manual:
11         CppUnit http://sourceforge.net/projects/cppunit/
12         GLEW    http://glew.sourceforge.net/
13         GLM     http://glm.g-truc.net/0.9.6/index.html
14         SDL     http://www.libsdl.org/
15
16
17 Makefile
18 ========
19
20 Targets
21 -------
22
23 all:
24         build everything
25
26 release (default), debug, profile:
27         build executables tuned for running, debugging, and profiling
28
29 run:
30         build and execute the main binary
31
32 test:
33         build and run unittests
34
35 gdb, cachegrind, callgrind:
36         build the binary suited for given tool and launch
37
38 clean:
39         remove intermediates
40
41 distclean:
42         remove intermediates and artifacts
43         (also those generated by tool invocations!)
44
45
46 Variables
47 ---------
48
49 CXX, LXX:
50         compiler/linker used for C++ sources/objects
51
52 LIBS:
53         names of libraries (for pkg-config)
54
55 CPPFLAGS, CXXFLAGS, LDXXFLAGS:
56         flags for the preprocessor, compiler, and linker
57
58 DEBUG_FLAGS, PROFILE_FLAGS, RELEASE_FLAGS:
59         flags for building binaries in debug, profile, and release mode