]> git.localhorst.tv Git - blank.git/blobdiff - building
add building notes
[blank.git] / building
diff --git a/building b/building
new file mode 100644 (file)
index 0000000..4163862
--- /dev/null
+++ b/building
@@ -0,0 +1,48 @@
+Dependencies
+============
+
+       GLEW, GLM, SDL2, SDL2_image
+
+archlinux: pacman -S glew glm sdl2 sdl2_image
+
+
+Makefile
+========
+
+Targets
+-------
+
+all:
+       build everything
+
+release (default), debug, profile:
+       build executables tuned for running, debugging, and profiling
+
+run:
+       build and execute the main binary
+
+gdb, cachegrind, callgrind:
+       build the binary suited for given tool and launch
+
+clean:
+       remove intermediates
+
+distclean:
+       remove intermediates and artifacts
+       (also those generated by tool invocations!)
+
+
+Variables
+---------
+
+CXX, LXX:
+       compiler/linker used for C++ sources/objects
+
+LIBS:
+       names of libraries (for pkg-config)
+
+CPPFLAGS, CXXFLAGS, LDXXFLAGS:
+       flags for the preprocessor, compiler, and linker
+
+DEBUG_FLAGS, PROFILE_FLAGS, RELEASE_FLAGS:
+       flags for building binaries in debug, profile, and release mode