1 SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)
3 QCCFLAGS_WATERMARK ?= $(shell git describe)
8 QCCVERSIONFILE := qccversion.$(shell (cd server && $(QCC) --version) > qccversion.txt && git hash-object qccversion.txt)
10 # We eventually need to get rid of these
15 -DWATERMARK="$(QCCFLAGS_WATERMARK)" \
17 -DBUILD_MOD=$(BUILD_MOD) \
20 # -Ooverlap-locals is required
27 -flno -futf8 -fno-bail-on-werror \
28 -frelaxed-switch -freturn-assignments \
31 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
38 qc: ../menu.dat ../progs.dat ../csprogs.dat
42 rm -f ../progs.dat ../menu.dat ../csprogs.dat
43 rm -f tmp/*.qc tmp/*.d tmp/*.txt
47 echo This file intentionally left blank. > $@
54 ../csprogs.dat: client/progs.inc $(QCCVERSIONFILE)
55 @echo make[1]: Entering directory \`$(PWD)/client\'
59 ../progs.dat: server/progs.inc $(QCCVERSIONFILE)
60 @echo make[1]: Entering directory \`$(PWD)/server\'
64 ../menu.dat: menu/progs.inc $(QCCVERSIONFILE)
65 @echo make[1]: Entering directory \`$(PWD)/menu\'
71 cd testcase && $(QCC) $(QCCDEFS) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"