1 SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)
3 QCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"'
6 QCCVERSIONFILE := qccversion.$(shell $(QCC) --version > qccversion.txt && git hash-object qccversion.txt)
8 # We eventually need to get rid of these.
10 -Wno-field-redeclared \
11 -Wno-double-declaration \
16 -Werror -fno-bail-on-werror -Wall \
17 -fftepp -fftepp-predefs -Wcpp -futf8 \
19 $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
21 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
31 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
35 rm -f ../progs.dat ../menu.dat ../csprogs.dat server/precache-for-csqc.inc
39 echo This file intentionally left blank. > $@
41 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
42 ../csprogs.dat: $(FILES_CSPROGS) $(QCCVERSIONFILE)
43 @echo make[1]: Entering directory \`$(PWD)/client\'
44 cd client && $(QCC) $(QCCFLAGS)
46 server/precache-for-csqc.inc: $(FILES_CSPROGS)
47 sh collect-precache.sh
49 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
50 ../progs.dat: $(FILES_PROGS) $(QCCVERSIONFILE) server/precache-for-csqc.inc
51 @echo make[1]: Entering directory \`$(PWD)/server\'
52 cd server && $(QCC) $(QCCFLAGS)
54 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
55 ../menu.dat: $(FILES_MENU) $(QCCVERSIONFILE)
56 @echo make[1]: Entering directory \`$(PWD)/menu\'
57 cd menu && $(QCC) $(QCCFLAGS)
61 cd testcase && $(QCC) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"