include_directories(qcsrc)
+add_definitions(-DXONOTIC=1)
add_definitions(-DNDEBUG=1)
find_package(Git REQUIRED)
QCCFLAGS_WATERMARK ?= $(shell git describe --tags --dirty='~')
VER = $(subst *,\*,$(QCCFLAGS_WATERMARK))
NDEBUG ?= 1
+XONOTIC ?= 1
BUILD_MOD ?= 0
ifndef ZIP
-Wno-field-redeclared
QCCDEFS ?= \
+ -DXONOTIC=$(XONOTIC) \
-DWATERMARK="$(QCCFLAGS_WATERMARK)" \
-DNDEBUG=$(NDEBUG) \
-DBUILD_MOD=$(BUILD_MOD) \
#include <lib/_all.inc>
+
+#if XONOTIC
+
#include "_all.qh"
#include "../client/_mod.inc"
#include <lib/warpzone/server.qc>
#include <lib/warpzone/util_server.qc>
+#endif
+
#if BUILD_MOD
#include "../../mod/client/progs.inc"
#endif
#include <lib/_all.inc>
+#if XONOTIC
+
#include "../menu/_mod.inc"
#include "anim/_mod.inc"
#include "command/_mod.inc"
#include <common/_all.inc>
+#endif
+
#if BUILD_MOD
#include "../../mod/menu/progs.inc"
#endif
#endif
#include <lib/_all.inc>
+
+#if XONOTIC
+
#include "_all.qh"
#include "../server/_mod.inc"
#include <lib/warpzone/server.qc>
#include <lib/warpzone/util_server.qc>
+#endif
+
#if BUILD_MOD
#include "../../mod/server/progs.inc"
#endif
declare -a QCCDEFS=(
-DNDEBUG=1
+ -DXONOTIC=1
-DWATERMARK="\"$(git describe --tags --dirty='~')\""
-DDEBUGPATHING=0
)