File: Makefile.am

package info (click to toggle)
nana 2.5-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,712 kB
  • ctags: 369
  • sloc: sh: 3,498; ansic: 1,547; makefile: 177; tcl: 48; lisp: 39
file content (49 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Makefile.am - automake configuration file for nana.
#

EXTRA_DIST = README \
	     nop.tst c_ops.tst assert.tst quantifiers.tst log.tst \
	     summary.tst \
	     measure.sh \
	     perf.tex \
	     prelude.c postlude.c \
	     dcache.tst perf.tex \
	     bogomips.c 

all:
	@echo "use make perf if you want to do the measurements"

# Note: you require latex and latex2html for this build

perf:	bogomips.mtex uname.mtex summary.mtex dcache.mtex others
	rm -f code.tex
	latex perf.tex
	latex2html -init_file init.l2h perf.tex

bogomips bogomips.mtex: bogomips.c
	gcc -O3 -I$(top_srcdir)/src -L$(top_srcdir)/src bogomips.c -lnana -o bogomips
	./bogomips >bogomips.mtex
	cat bogomips.mtex

uname.mtex:
	uname -m -s -r >uname.mtex
	cat uname.mtex

summary.mtex: summary.tst measure.sh
	./measure.sh -O <summary.tst >summary.mtex

dcache.mtex: dcache.tst measure.sh
	./measure.sh "-DNT=16" <dcache.tst >dcache.mtex

others:
	rm -f code.tex
	for f in nop c_ops assert quantifiers log ; \
	do \
	   echo "Testing: $$f" ; \
	   ./measure.sh -O0 -O1 -O3 <$$f.tst >$$f.mtex ; \
        done