X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=Makefile;h=c23e9ac4a8f35f40dccccdc920733c3420c0de99;hb=def4939c34e1e2ce5e48ce6244e82a681317b893;hp=9b261db863a2bb9c7b62e4d16cb171dc220c77d2;hpb=39df551265bff648c1ac166043bb4b046122cc8d;p=blank.git diff --git a/Makefile b/Makefile index 9b261db..c23e9ac 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)) @@ -17,7 +17,7 @@ LDXXFLAGS += $(PKGLIBS) DEBUG_FLAGS = -g3 -O0 PROFILE_FLAGS = -DNDEBUG -O1 -g3 -RELEASE_FLAGS = -DNDEBUG -O2 +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 client-saves/ + gdb: $(ASSET_DEP) blank.debug gdb ./blank.debug @@ -85,7 +91,7 @@ clean: distclean: clean rm -f $(BIN) cachegrind.out.* callgrind.out.* - rm -Rf build saves + rm -Rf build client-saves saves .PHONY: all release debug profile tests run gdb cachegrind callgrind test clean distclean