summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2012-11-11 18:18:01 +0400
committerAndrey Nazarov <skuller@skuller.net>2012-11-11 18:18:01 +0400
commita8e0a1859212d7712dfaf3df812c06251359ab5e (patch)
tree85b777407f3b01a7e46aabdf8923e5cf5954fec5
parentd42b3283be2af22701d1d992591dc3bf49d2283c (diff)
Fix client build with CONFIG_NO_ZLIB.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 46d9053..5bf831b 100644
--- a/Makefile
+++ b/Makefile
@@ -393,7 +393,10 @@ ifdef CONFIG_MVD_CLIENT
OBJS_c += src/server/mvd/client.o src/server/mvd/game.o src/server/mvd/parse.o
endif
-ifndef CONFIG_NO_ZLIB
+ifdef CONFIG_NO_ZLIB
+ CFLAGS_c += -DUSE_ZLIB=0
+ CFLAGS_s += -DUSE_ZLIB=0
+else
ZLIB_CFLAGS ?=
ZLIB_LIBS ?= -lz
CFLAGS_c += -DUSE_ZLIB=1 $(ZLIB_CFLAGS)