summaryrefslogtreecommitdiffabout
path: root/Makefile.am
blob: a7c97e1bd6574b5456d1636e2bd4e4bc48a3902f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = gdbm/master gdbm/newcache src
BENCHMARKDIR=benchmarks
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 "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.