1 SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)
5 FTEQCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"' -DCVAR_POPCON
6 FTEQCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-c -Ono-cs -fno-fastarrays $(FTEQCCFLAGS_EXTRA) $(FTEQCCFLAGS_WATERMARK)
10 # NOTE: use -DUSE_FTE instead of -TFTE here!
11 # It will automagically add an engine check with -TID and then change back to -TFTE
12 FTEQCCFLAGS_CSPROGS ?=
14 # xonotic build system overrides this by command line argument to turn off the update-cvarcount step
24 qc-recursive: ../menu.dat ../progs.dat ../csprogs.dat
28 rm -f ../progs.dat ../menu.dat ../csprogs.dat
30 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
31 ../csprogs.dat: $(FILES_CSPROGS)
32 @echo make[1]: Entering directory \`$(PWD)/client\'
33 cd client && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS)
35 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
36 ../progs.dat: $(FILES_PROGS)
37 @echo make[1]: Entering directory \`$(PWD)/server\'
38 cd server && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_PROGS)
40 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm) $(wildcard server/w_*.qc)
41 ../menu.dat: $(FILES_MENU)
42 @echo make[1]: Entering directory \`$(PWD)/menu\'
43 cd menu && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_MENU)
47 cd testcase && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS) -DTESTCASE="$$TESTCASE"