1 SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)
3 QCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"' -DCVAR_POPCON=1
6 VERSION_MESSAGE = $(shell cd server && $(QCC) --version --help)
7 ifneq (,$(findstring GMQCC,$(VERSION_MESSAGE)))
12 -Wno-field-redeclared \
13 -Wno-double-declaration \
14 -Wno-uninitialized-global \
16 -fadjust-vector-fields \
22 -ftranslatable-strings \
23 -fno-initialized-nonconstants \
24 -fno-assign-function-types \
27 -fno-single-vector-defs \
29 -ftrue-empty-strings \
30 -fno-false-empty-strings \
37 -DNOTIFICATIONS_DEBUG \
38 $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
40 # this. is. fteqccccccccccccccccccc!
41 QCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
44 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
54 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
58 rm -f ../progs.dat ../menu.dat ../csprogs.dat
60 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
61 ../csprogs.dat: $(FILES_CSPROGS)
62 @echo make[1]: Entering directory \`$(PWD)/client\'
63 cd client && $(QCC) $(QCCFLAGS)
65 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
66 ../progs.dat: $(FILES_PROGS)
67 @echo make[1]: Entering directory \`$(PWD)/server\'
68 cd server && $(QCC) $(QCCFLAGS)
70 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
71 ../menu.dat: $(FILES_MENU)
72 @echo make[1]: Entering directory \`$(PWD)/menu\'
73 cd menu && $(QCC) $(QCCFLAGS)
77 cd testcase && $(QCC) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"