X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=d47b4d2502ee144528cab227443ebf1b84f18582;hb=aa173d5f30ea45f0c06799c858c4a91681cf0cf7;hp=78e6c72f49c072b8b4766ca908340fea7367f534;hpb=83c6612bf07228f70d25136c850f660721379632;p=rrq%2Fjonesforth.git diff --git a/Makefile b/Makefile index 78e6c72..d47b4d2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 2007-10-07 11:07:15 rich Exp $ +# $Id: Makefile,v 1.8 2007-10-11 07:45:35 rich Exp $ SHELL := /bin/bash @@ -11,7 +11,9 @@ run: cat jonesforth.f $(PROG) - | ./jonesforth clean: - rm -f jonesforth *~ core .test_* + rm -f jonesforth perf_dupdrop *~ core .test_* + +# Tests. TESTS := $(patsubst %.f,%.test,$(wildcard test_*.f)) @@ -27,8 +29,16 @@ test_%.test: test_%.f jonesforth @rm -f .$@ @echo "ok" +# Performance. + +perf_dupdrop: perf_dupdrop.c + gcc -O3 -Wall -Werror -o $@ $< + +run_perf_dupdrop: jonesforth + cat <(echo ': TEST-MODE ;') jonesforth.f perf_dupdrop.f | ./jonesforth + .SUFFIXES: .f .test -.PHONY: test check +.PHONY: test check run run_perf_dupdrop remote: scp jonesforth.S jonesforth.f rjones@oirase:Desktop/