]> git.localhorst.tv Git - space.git/blob - build/config.mk
move to SDL2
[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 sdl2)
21 SDL_LIBS = $(shell pkg-config --libs sdl2)
22
23 CPPUNIT_FLAGS = $(shell pkg-config --cflags cppunit)
24 CPPUNIT_LIBS = $(shell pkg-config --libs cppunit)
25
26 # set to empty to show tool invocations
27 VERBOSE = @
28
29 -include $(BUILD)local-config.mk