X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2FMakefile;h=7c8e3b8ad16f7207d5296f16a4cde3a61863c540;hp=bfea08b5f92df070fbcc59269b5ec65ed7bb3162;hb=3c08561fdbb39a6aed38b984faa131aa04282aff;hpb=133d11b551774ae3a10508774d4628e2671c692a diff --git a/qcsrc/Makefile b/qcsrc/Makefile index bfea08b5f..7c8e3b8ad 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -29,6 +29,10 @@ ifndef ZIP endif endif +# Set to empty string to temporarily enable warnings when debugging +QCCFLAGS_WERROR ?= \ + -Werror + # We eventually need to get rid of these QCCFLAGS_WTFS ?= \ -Wno-field-redeclared @@ -48,7 +52,8 @@ QCCFLAGS ?= \ -std=gmqcc \ -Ooverlap-locals \ -O3 \ - -Werror -Wall \ + $(QCCFLAGS_WERROR) \ + -Wall \ $(QCCFLAGS_WTFS) \ -flno -futf8 -fno-bail-on-werror \ -frelaxed-switch -freturn-assignments \ @@ -88,8 +93,8 @@ pk3: csprogs-$(VER).pk3 $(eval DAT=$(PROG)-$(VER).dat) $(eval LNO=$(PROG)-$(VER).lno) @ echo "http://xonotic.org" > $(TXT) - @ ln -f $(PROGS_OUT)/$(PROG).dat $(DAT) - @ ln -f $(PROGS_OUT)/$(PROG).lno $(LNO) + @ cp -f $(PROGS_OUT)/$(PROG).dat $(DAT) + @ cp -f $(PROGS_OUT)/$(PROG).lno $(LNO) @ $(RM) *.pk3 $(ZIP) $(PK3) $(TXT) $(DAT) $(LNO) @ $(RM) $(TXT) $(DAT) $(LNO)