aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 2020e06e881618c5e1db27670efcd3fa8631ee7e (plain)
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = gdbm/master gdbm/newcache src
BENCHMARKDIR=benchmarks
NUMSAMPLES=5
benchmark:
	@if test -z "$(NRECS)"; then \
		echo "Please set NRECS"; \
		exit 1; \
	fi; \
	if test -z "$(NKEYS)"; then \
		echo "Please set NKEYS"; \
		exit 1; \
	fi; \
	DIRNAME="$(BENCHMARKDIR)/$(NRECS)-$(NKEYS)"; \
	if ! test -d "$$DIRNAME"; then \
		mkdir -p $$DIRNAME; \
		(echo "NRECS=$(NRECS)"; \
		 echo "NKEYS=$(NKEYS)"; \
		 echo "MAXCACHE=$(MAXCACHE)"; \
                 echo "NUMSAMPLES=$(NUMSAMPLES)"; \
                 echo "RUNTESTOPT=$(RUNTESTOPT)"; \
		 echo "FETCHKEYSOPT=$(FETCHKEYSOPT)"; \
		 echo "include @abs_top_builddir@/src/benchmark.mk") > $$DIRNAME/Makefile; \
	fi; \
	$(MAKE) -C $$DIRNAME

Return to:

Send suggestions and report system problems to the System administrator.