X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=building;fp=building;h=41638628526aa965d2bce7fce02d5b3333f0b9c2;hb=d66d14f853f2d05f54076d38c72e53419dfc4cc5;hp=0000000000000000000000000000000000000000;hpb=e5b1f5ef948724145ec2ed5777f4da1d6d862afd;p=blank.git diff --git a/building b/building new file mode 100644 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