]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - BSDmakefile
oh my god, make it stop >.<
[xonotic/gmqcc.git] / BSDmakefile
index c5d705af92a5df3146cf8b865ec324dfc88c4136..679e15aa33c28f301d2cdfee8354b28409600f43 100644 (file)
@@ -3,6 +3,8 @@
 #
 .include "include.mk"
 
+.MAKE.JOB.PREFIX=
+
 GITTEST  != git describe --always 2>/dev/null
 VALTEST  != valgrind --version 2>/dev/null
 GITINFO  :=
@@ -49,11 +51,8 @@ TESTSUITE = testsuite
 PAK       = gmqpak
 
 #standard rules
-c.o: ${.IMPSRC} 
-       $(CC) -c ${.IMPSRC} -o ${.TARGET} $(CFLAGS) $(CPPFLAGS) 
-
-exec-standalone.o: exec.c
-       $(CC) -c ${.ALLSRC} -o ${.TARGET} $(CFLAGS) $(CPPFLAGS) -DQCVM_EXECUTOR=1
+c.o: ${.IMPSRC}
+       $(CC) -c ${.IMPSRC} -o ${.TARGET} $(CFLAGS) $(CPPFLAGS)
 
 $(QCVM): $(OBJ_X)
        $(CC) -o ${.TARGET} ${.IMPSRC} $(LDFLAGS) $(LIBS) $(OBJ_X)
@@ -74,18 +73,14 @@ check: all
 test: all
        @ ./$(TESTSUITE)
 
+strip: $(GMQCC) $(QCVM) $(TESTSUITE)
+       strip $(GMQCC)
+       strip $(QCVM)
+       strip $(TESTSUITE)
+
 clean:
        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 -f BSDmakefile -w 65536 2> /dev/null ${DEPS:C/\.o/.c/g}
 
@@ -118,6 +113,7 @@ ast.o: gmqcc.h opts.def ast.h ir.h parser.h lexer.h
 code.o: gmqcc.h opts.def
 conout.o: gmqcc.h opts.def
 correct.o: gmqcc.h opts.def
+exec.o: gmqcc.h opts.def
 fold.o: ast.h ir.h gmqcc.h opts.def parser.h lexer.h
 fs.o: gmqcc.h opts.def platform.h
 ftepp.o: gmqcc.h opts.def lexer.h