1 # $Id: Makefile,v 1.9 2007-10-22 18:53:12 rich Exp $
3 #BUILD_ID_NONE := -Wl,--build-id=none
10 jonesforth: jonesforth.S
11 gcc -m32 -nostdlib -static -Wl,-Ttext,0 $(BUILD_ID_NONE) -o $@ $<
14 cat jonesforth.f $(PROG) - | ./jonesforth
17 rm -f jonesforth perf_dupdrop *~ core .test_*
21 TESTS := $(patsubst %.f,%.test,$(wildcard test_*.f))
25 test_%.test: test_%.f jonesforth
28 @cat <(echo ': TEST-MODE ;') jonesforth.f $< <(echo 'TEST') | \
30 sed 's/DSP=[0-9]*//g' > .$@
37 perf_dupdrop: perf_dupdrop.c
38 gcc -O3 -Wall -Werror -o $@ $<
40 run_perf_dupdrop: jonesforth
41 cat <(echo ': TEST-MODE ;') jonesforth.f perf_dupdrop.f | ./jonesforth
44 .PHONY: test check run run_perf_dupdrop
47 scp jonesforth.S jonesforth.f rjones@oirase:Desktop/
48 ssh rjones@oirase sh -c '"rm -f Desktop/jonesforth; \
49 gcc -m32 -nostdlib -static -Wl,-Ttext,0 -o Desktop/jonesforth Desktop/jonesforth.S; \
50 cat Desktop/jonesforth.f - | Desktop/jonesforth arg1 arg2 arg3"'