# commands CXX = g++ -std=c++11 RM ?= rm -Rf MKDIR ?= mkdir -p RMDIR ?= rmdir -p --ignore-fail-on-non-empty # names and pathes BUILD := $(dir $(lastword $(MAKEFILE_LIST))) TOP := $(BUILD).. srcdir = $(TOP)/src # flags CPPFLAGS ?= CXXFLAGS ?= LDFLAGS ?= CXXFLAGS += -Wall -Werror # libraries SDL_FLAGS = $(shell pkg-config --cflags sdl2) SDL_LIBS = $(shell pkg-config --libs sdl2) CPPUNIT_FLAGS = $(shell pkg-config --cflags cppunit) CPPUNIT_LIBS = $(shell pkg-config --libs cppunit) # set to empty to show tool invocations VERBOSE = @ -include $(BUILD)local-config.mk