1# 2# Makefile.am - automake configuration file for nana. 3# 4 5EXTRA_DIST = README \ 6 nop.tst c_ops.tst assert.tst quantifiers.tst log.tst \ 7 summary.tst \ 8 measure.sh \ 9 perf.tex \ 10 prelude.c postlude.c \ 11 dcache.tst perf.tex \ 12 bogomips.c 13 14all: 15 @echo "use make perf if you want to do the measurements" 16 17# Note: you require latex and latex2html for this build 18 19perf: bogomips.mtex uname.mtex summary.mtex dcache.mtex others 20 rm -f code.tex 21 latex perf.tex 22 latex2html -init_file init.l2h perf.tex 23 24bogomips bogomips.mtex: bogomips.c 25 gcc -O3 -I$(top_srcdir)/src -L$(top_srcdir)/src bogomips.c -lnana -o bogomips 26 ./bogomips >bogomips.mtex 27 cat bogomips.mtex 28 29uname.mtex: 30 uname -m -s -r >uname.mtex 31 cat uname.mtex 32 33summary.mtex: summary.tst measure.sh 34 ./measure.sh -O <summary.tst >summary.mtex 35 36dcache.mtex: dcache.tst measure.sh 37 ./measure.sh "-DNT=16" <dcache.tst >dcache.mtex 38 39others: 40 rm -f code.tex 41 for f in nop c_ops assert quantifiers log ; \ 42 do \ 43 echo "Testing: $$f" ; \ 44 ./measure.sh -O0 -O1 -O3 <$$f.tst >$$f.mtex ; \ 45 done 46 47 48 49 50