1 SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)
4 ifdef XONOTIC_USE_FTEQCC
6 FTEQCCFLAGS_WATERMARK ?=
7 FTEQCCFLAGS ?= -std=fteqcc -fshort-logic -O1 -flno $(FTEQCCFLAGS_EXTRA) $(FTEQCCFLAGS_WATERMARK)
12 FTEQCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"' -DCVAR_POPCON
13 FTEQCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(FTEQCCFLAGS_EXTRA) $(FTEQCCFLAGS_WATERMARK)
18 # NOTE: use -DUSE_FTE instead of -TFTE here!
19 # It will automagically add an engine check with -TID and then change back to -TFTE
20 FTEQCCFLAGS_CSPROGS ?=
22 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
32 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
36 rm -f ../progs.dat ../menu.dat ../csprogs.dat
38 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
39 ../csprogs.dat: $(FILES_CSPROGS)
40 @echo make[1]: Entering directory \`$(PWD)/client\'
41 cd client && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS)
43 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
44 ../progs.dat: $(FILES_PROGS)
45 @echo make[1]: Entering directory \`$(PWD)/server\'
46 cd server && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_PROGS)
48 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
49 ../menu.dat: $(FILES_MENU)
50 @echo make[1]: Entering directory \`$(PWD)/menu\'
51 cd menu && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_MENU)
55 cd testcase && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS) -DTESTCASE="$$TESTCASE"