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))
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
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