]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - BSDmakefile
Fedora spec files (0.2.9 and 0.3.0) + INSTALL documentation, thanks Igor Gnatenko.
[xonotic/gmqcc.git] / BSDmakefile
index 654fe5f09a56201f2c5397e3d7f8765e799cf6aa..a84493bd97bae025e9078953d900c602621201ff 100644 (file)
@@ -21,6 +21,7 @@ CFLAGS   +=  -Wall -Wextra -Werror -fno-strict-aliasing -DGMQCC_GITINFO=\"$(GITI
                 -Wno-missing-prototypes\
                 -Wno-float-equal\
                 -Wno-unknown-warning-option\
+                -Wno-cast-align\
                 -Wstrict-prototypes
 .else
 .    if $(CC) == tcc
@@ -38,7 +39,7 @@ TESTSUITE = testsuite
 PAK       = gmqpak
 
 #standard rules
-c.o:
+c.o: ${.IMPSRC} 
        $(CC) -c ${.IMPSRC} -o ${.TARGET} $(CPPFLAGS) $(CFLAGS)
 
 exec-standalone.o: exec.c
@@ -64,7 +65,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
@@ -78,6 +79,12 @@ gource-record:
 depend:
        @makedepend -Y -f BSDmakefile -w 65536 2> /dev/null ${DEPS:C/\.o/.c/g}
 
+coverity:
+       @cov-build --dir cov-int $(MAKE) -f BSDmakefile
+       @tar czf gm-qcc.tgz cov-int
+       @rm -rf cov-int
+       @echo gm-qcc.tgz generated, submit for analysis
+
 install: install-gmqcc install-qcvm install-gmqpak install-doc
 install-gmqcc: $(GMQCC)
        install -d -m755              $(DESTDIR)$(BINDIR)