]> git.localhorst.tv Git - space.git/blob - build/config.mk
grid view
[space.git] / build / config.mk
1 # commands
2 CXX = g++ -std=c++11
3 RM ?= rm -Rf
4 MKDIR ?= mkdir -p
5 RMDIR ?= rmdir -p --ignore-fail-on-non-empty
6
7 # names and pathes
8 BUILD := $(dir $(lastword $(MAKEFILE_LIST)))
9 TOP := $(BUILD)..
10 srcdir = $(TOP)/src
11
12 # flags
13 CPPFLAGS ?=
14 CXXFLAGS ?=
15 LDFLAGS ?=
16
17 CXXFLAGS += -Wall -Werror
18
19 # libraries
20 SDL_FLAGS = $(shell pkg-config --cflags sdl)
21 SDL_LIBS = $(shell pkg-config --libs sdl)
22
23 SDL_IMG_FLAGS = $(shell pkg-config --cflags SDL_image)
24 SDL_IMG_LIBS = $(shell pkg-config --libs SDL_image)
25
26 CPPUNIT_FLAGS = $(shell pkg-config --cflags cppunit)
27 CPPUNIT_LIBS = $(shell pkg-config --libs cppunit)
28
29 # set to empty to show tool invocations
30 VERBOSE = @
31
32 -include $(BUILD)local-config.mk