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