X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=build%2Fconfig.mk;fp=build%2Fconfig.mk;h=899e36329e5c0086e16c20da2c03ecacc31257fa;hb=9d645a0059d185291f63c1375bd4e5ae844acde6;hp=0000000000000000000000000000000000000000;hpb=3673ff7cec6896ff3d3aaf7f19027c510a15bcda;p=l2e.git diff --git a/build/config.mk b/build/config.mk new file mode 100644 index 0000000..899e363 --- /dev/null +++ b/build/config.mk @@ -0,0 +1,29 @@ +# commands +CXX ?= g++ +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 sdl) +SDL_LIBS = $(shell pkg-config --libs sdl) + +SDL_IMG_FLAGS = $(shell pkg-config --cflags SDL_image) +SDL_IMG_LIBS = $(shell pkg-config --libs SDL_image) + +# set to empty to show tool invocations +VERBOSE = @ + +-include $(BUILD)local-config.mk