]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add QCCFLAGS_TARGET Makefile option to allow changing the QCC support target
authorMario <mario.mario@y7mail.com>
Sat, 2 Jul 2022 14:09:00 +0000 (00:09 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 2 Jul 2022 14:09:00 +0000 (00:09 +1000)
qcsrc/Makefile

index c4650c26f5f7d8cdb5a79129fad67f998d777827..b0a33ea73a59fe659244114d272acec1a23016b7 100644 (file)
@@ -38,6 +38,10 @@ QCCFLAGS_WERROR ?= \
 QCCFLAGS_WTFS ?= \
        -Wno-field-redeclared
 
+# By default Xonotic targets GMQCC, set to -Tdp for FTEQCC extended support
+QCCFLAGS_TARGET ?= \
+       -std=gmqcc
+
 QCCDEFS ?= \
        -DXONOTIC=$(XONOTIC) \
        -DWATERMARK="$(QCCFLAGS_WATERMARK)" \
@@ -50,7 +54,7 @@ QCCDEFS ?= \
 
 # -Ooverlap-locals is required
 QCCFLAGS ?= \
-       -std=gmqcc \
+       $(QCCFLAGS_TARGET) \
        -Ooverlap-locals \
        -O3 \
        $(QCCFLAGS_WERROR) \