- rm -f *.o gmqcc qcvm testsuite *.dat
-
-
-$(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h
-main.o: lexer.h
-parser.o: ast.h lexer.h
-ast.o: ast.h ir.h
-ir.o: ir.h
-
-install: install-gmqcc install-qcvm
-install-gmqcc: gmqcc
- install -d -m755 $(DESTDIR)$(BINDIR)
- install -m755 gmqcc $(DESTDIR)$(BINDIR)/gmqcc
-install-qcvm: qcvm
- install -d -m755 $(DESTDIR)$(BINDIR)
- install -m755 qcvm $(DESTDIR)$(BINDIR)/qcvm
+ rm -rf *.o $(GMQCC) $(QCVM) $(TESTSUITE) $(PAK) *.dat gource.mp4 *.exe gm-qcc.tgz ./cov-int
+
+splint:
+ @ splint $(SPLINTFLAGS) *.c *.h
+
+gource:
+ @ gource $(GOURCEFLAGS)
+
+gource-record:
+ @ gource $(GOURCEFLAGS) -o - | ffmpeg $(FFMPEGFLAGS) gource.mp4
+
+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)
+ install -d -m755 $(DESTDIR)$(BINDIR)
+ install -m755 $(GMQCC) $(DESTDIR)$(BINDIR)/$(GMQCC)
+install-qcvm: $(QCVM)
+ install -d -m755 $(DESTDIR)$(BINDIR)
+ install -m755 $(QCVM) $(DESTDIR)$(BINDIR)/$(QCVM)
+install-gmqpak: $(PAK)
+ install -d -m755 $(DESTDIR)$(BINDIR)
+ install -m755 $(PAK) $(DESTDIR)$(BINDIR)/$(PAK)
+install-doc:
+ install -d -m755 $(DESTDIR)$(MANDIR)/man1
+ install -m644 doc/gmqcc.1 $(DESTDIR)$(MANDIR)/man1/
+ install -m644 doc/qcvm.1 $(DESTDIR)$(MANDIR)/man1/
+ install -m644 doc/gmqpak.1 $(DESTDIR)$(MANDIR)/man1/
+
+# DO NOT DELETE
+
+pak.o: gmqcc.h opts.def platform.h
+ansi.o: platform.h gmqcc.h opts.def
+util.o: gmqcc.h opts.def platform.h
+stat.o: gmqcc.h opts.def
+fs.o: gmqcc.h opts.def platform.h
+conout.o: gmqcc.h opts.def platform.h
+opts.o: gmqcc.h opts.def platform.h
+test.o: gmqcc.h opts.def platform.h
+main.o: gmqcc.h opts.def lexer.h
+lexer.o: gmqcc.h opts.def lexer.h platform.h
+parser.o: parser.h gmqcc.h opts.def lexer.h ast.h ir.h platform.h
+code.o: gmqcc.h opts.def
+ast.o: gmqcc.h opts.def ast.h ir.h parser.h lexer.h platform.h
+ir.o: gmqcc.h opts.def ir.h platform.h
+ftepp.o: gmqcc.h opts.def lexer.h platform.h
+utf8.o: gmqcc.h opts.def
+correct.o: gmqcc.h opts.def
+fold.o: ast.h ir.h gmqcc.h opts.def parser.h lexer.h platform.h
+intrin.o: parser.h gmqcc.h opts.def lexer.h ast.h ir.h platform.h