]> git.localhorst.tv Git - blank.git/blobdiff - Makefile
send updates less frequently on bad connections
[blank.git] / Makefile
index 7bafccd6a6e74e2c436e4b0f218736d30237219b..00230db9d4e52cee9857dc122b7705589af28570 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 CXX = g++ --std=c++11
 LDXX = g++
 
-LIBS = sdl2 SDL2_image SDL2_ttf glew openal freealut zlib
+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,7 +16,7 @@ LDXXFLAGS ?=
 LDXXFLAGS += $(PKGLIBS)
 
 DEBUG_FLAGS = -g3 -O0
-PROFILE_FLAGS = -DNDEBUG -O1 -g3
+PROFILE_FLAGS = -DNDEBUG -O1 -g3 -DBLANK_PROFILING
 RELEASE_FLAGS = -DNDEBUG -O2 -g1
 TEST_FLAGS = -g -O2 -I./src $(TESTFLAGS)
 
@@ -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