]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Fix that typecast
[xonotic/gmqcc.git] / Makefile
index 8a5e72fe141f0188119845cac1ef9ad159de07fb..4444566cd93d7c4417e6ea7fc5085203fe4014d3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ ifeq ($(CC), clang)
            -Wno-missing-prototypes            \
            -Wno-float-equal                   \
            -Wno-unknown-warning-option        \
+           -Wno-cast-align                    \
            -Wstrict-prototypes
 else
        #Tiny C Compiler doesn't know what -pedantic-errors is
@@ -100,7 +101,7 @@ test: all
        @ ./$(TESTSUITE)
 
 clean:
-       rm -f *.o $(GMQCC) $(QCVM) $(TESTSUITE) $(PAK) *.dat gource.mp4 *.exe
+       rm -rf *.o $(GMQCC) $(QCVM) $(TESTSUITE) $(PAK) *.dat gource.mp4 *.exe gm-qcc.tgz ./cov-int
 
 splint:
        @  splint $(SPLINTFLAGS) *.c *.h
@@ -114,6 +115,13 @@ gource-record:
 depend:
        @ makedepend -Y -w 65536 2> /dev/null $(subst .o,.c,$(DEPS))
 
+
+coverity:
+       @cov-build --dir cov-int $(MAKE)
+       @tar czf gm-qcc.tgz cov-int
+       @rm -rf cov-int
+       @echo gm-qcc.tgz generated, submit for analysis
+
 #install rules
 install: install-gmqcc install-qcvm install-gmqpak install-doc
 install-gmqcc: $(GMQCC)