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.
12 QCCFLAGS_FEATURES ?= \
13 -DVEHICLES_ENABLED=1 \
14 -DVEHICLES_USE_ODE=0 \
15 -DBUILD_MOD=$(BUILD_MOD)
22 -fftepp -flno -futf8 -fno-bail-on-werror -fftepp-predefs \
23 -frelaxed-switch -freturn-assignments \
24 $(QCCFLAGS_WATERMARK) \
25 $(QCCFLAGS_FEATURES) \
28 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
35 qc: ../menu.dat ../progs.dat ../csprogs.dat
39 rm -f ../progs.dat ../menu.dat ../csprogs.dat
43 echo This file intentionally left blank. > $@
45 FILES_CSPROGS = $(shell find client lib common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
46 ../csprogs.dat: $(FILES_CSPROGS) $(QCCVERSIONFILE)
47 @echo make[1]: Entering directory \`$(PWD)/client\'
48 cd client && $(QCC) $(QCCFLAGS) -DCSQC
50 FILES_PROGS = $(shell find server lib common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
51 ../progs.dat: $(FILES_PROGS) $(QCCVERSIONFILE)
52 @echo make[1]: Entering directory \`$(PWD)/server\'
53 cd server && $(QCC) $(QCCFLAGS) -DSVQC
55 FILES_MENU = $(shell find menu lib 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"