VER = $(subst *,\*,$(QCCFLAGS_WATERMARK))
NDEBUG ?= 1
XONOTIC ?= 1
-BUILD_MOD ?= 0
+BUILD_MOD ?=
ifndef ZIP
ifneq ($(shell which zip),)
-DXONOTIC=$(XONOTIC) \
-DWATERMARK="$(QCCFLAGS_WATERMARK)" \
-DNDEBUG=$(NDEBUG) \
- -DBUILD_MOD=$(BUILD_MOD) \
+ $(if $(BUILD_MOD), -DBUILD_MOD="$(BUILD_MOD)" -I$(BUILD_MOD), ) \
$(QCCDEFS_EXTRA)
# -Ooverlap-locals is required