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)))
9 QCCFLAGS ?= -Werror -Wall -Wno-field-redeclared -Wno-double-declaration -Wno-assign-function-types -Wno-unused-variable -std=fteqcc -O3 -fshort-logic -ftranslatable-strings -flno $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
11 # this. is. fteqccccccccccccccccccc!
12 QCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
15 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
25 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
29 rm -f ../progs.dat ../menu.dat ../csprogs.dat
31 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
32 ../csprogs.dat: $(FILES_CSPROGS)
33 @echo make[1]: Entering directory \`$(PWD)/client\'
34 cd client && $(QCC) $(QCCFLAGS)
36 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
37 ../progs.dat: $(FILES_PROGS)
38 @echo make[1]: Entering directory \`$(PWD)/server\'
39 cd server && $(QCC) $(QCCFLAGS)
41 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
42 ../menu.dat: $(FILES_MENU)
43 @echo make[1]: Entering directory \`$(PWD)/menu\'
44 cd menu && $(QCC) $(QCCFLAGS)
48 cd testcase && $(QCC) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"