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)))
12 -Wno-field-redeclared \
13 -Wno-double-declaration \
14 -Wno-assign-function-types \
15 -Wno-unused-variable \
18 -ftranslatable-strings \
19 -fadjust-vector-fields \
20 -fassign-function-types \
23 -ftrue-empty-strings \
26 $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
28 # this. is. fteqccccccccccccccccccc!
29 QCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
32 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
42 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
46 rm -f ../progs.dat ../menu.dat ../csprogs.dat
48 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
49 ../csprogs.dat: $(FILES_CSPROGS)
50 @echo make[1]: Entering directory \`$(PWD)/client\'
51 cd client && $(QCC) $(QCCFLAGS)
53 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
54 ../progs.dat: $(FILES_PROGS)
55 @echo make[1]: Entering directory \`$(PWD)/server\'
56 cd server && $(QCC) $(QCCFLAGS)
58 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
59 ../menu.dat: $(FILES_MENU)
60 @echo make[1]: Entering directory \`$(PWD)/menu\'
61 cd menu && $(QCC) $(QCCFLAGS)
65 cd testcase && $(QCC) $(QCCFLAGS) -DTESTCASE="$$TESTCASE"