X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=Makefile;h=f42e12e612e9aa246e5c832cc1b7a9eb2b601ce0;hb=e20be973f6ef23164ae54398088e1b14d9bac3ab;hp=5989839db7a74d8935dd755e3c0c94a4b9dc2668;hpb=34a7fafb4c2d4ed95eb990eda5c02d5c79d3411b;p=blank.git diff --git a/Makefile b/Makefile index 5989839..f42e12e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CXX = g++ --std=c++11 LDXX = g++ -LIBS = sdl2 SDL2_image SDL2_ttf glew openal freealut +LIBS = sdl2 SDL2_image SDL2_net SDL2_ttf glew openal freealut zlib PKGFLAGS := $(shell pkg-config --cflags $(LIBS)) PKGLIBS := $(shell pkg-config --libs $(LIBS)) @@ -16,8 +16,8 @@ LDXXFLAGS ?= LDXXFLAGS += $(PKGLIBS) DEBUG_FLAGS = -g3 -O0 -PROFILE_FLAGS = -DNDEBUG -O1 -g3 -RELEASE_FLAGS = -DNDEBUG -O2 +PROFILE_FLAGS = -DNDEBUG -O1 -g3 -DBLANK_PROFILING +RELEASE_FLAGS = -DNDEBUG -O2 -g1 TEST_FLAGS = -g -O2 -I./src $(TESTFLAGS) SOURCE_DIR := src @@ -64,6 +64,12 @@ tests: $(TEST_BIN) run: $(ASSET_DEP) blank ./blank --save-path saves/ +server: $(ASSET_DEP) blank + ./blank --server --save-path saves/ + +client: $(ASSET_DEP) blank + ./blank --client --save-path saves/ + gdb: $(ASSET_DEP) blank.debug gdb ./blank.debug @@ -85,6 +91,7 @@ clean: distclean: clean rm -f $(BIN) cachegrind.out.* callgrind.out.* + rm -Rf build client-saves saves .PHONY: all release debug profile tests run gdb cachegrind callgrind test clean distclean