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 (cd server && $(QCC) --version) > qccversion.txt && git hash-object qccversion.txt)
8 # We eventually need to get rid of these.
15 -Werror -fno-bail-on-werror -Wall \
16 -fftepp -fftepp-predefs -Wcpp -futf8 -frelaxed-switch \
18 $(QCCFLAGS_FEATURES) \
19 $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
21 QCCFLAGS_FEATURES ?= \
22 -DVEHICLES_ENABLED=1 \
25 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
32 qc: ../menu.dat ../progs.dat ../csprogs.dat
36 rm -f ../progs.dat ../menu.dat ../csprogs.dat server/precache-for-csqc.inc
40 echo This file intentionally left blank. > $@
42 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
43 ../csprogs.dat: $(FILES_CSPROGS) $(QCCVERSIONFILE)
44 @echo make[1]: Entering directory \`$(PWD)/client\'
45 cd client && $(QCC) $(QCCFLAGS) -DCSQC
47 server/precache-for-csqc.inc: $(FILES_CSPROGS)
48 sh collect-precache.sh
50 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
51 ../progs.dat: $(FILES_PROGS) $(QCCVERSIONFILE) server/precache-for-csqc.inc
52 @echo make[1]: Entering directory \`$(PWD)/server\'
53 cd server && $(QCC) $(QCCFLAGS) -DSVQC
55 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm)
56 ../menu.dat: $(FILES_MENU) $(QCCVERSIONFILE)
57 @echo make[1]: Entering directory \`$(PWD)/menu\'
58 cd menu && $(QCC) $(QCCFLAGS) -DMENUQC
62 cd testcase && $(QCC) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"