From 2eccf4140d3ff1be3d0904eafe3aa84845c67943 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 27 Apr 2016 17:49:10 +0300 Subject: [PATCH] mdbx: minor refine makefile (most for 'bench' target). Change-Id: Ic59fc705e430ba6aa5771bc50d3e2bf62e43ae08 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 054768f5..56807bf7 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ mandir ?= $(prefix)/man CC ?= gcc XCFLAGS ?= -DNDEBUG=1 -DMDB_DEBUG=0 -CFLAGS ?= -O2 -g -Wall -Werror -Wextra +CFLAGS ?= -O2 -g3 -Wall -Werror -Wextra CFLAGS += -pthread $(XCFLAGS) IOARENA ?= ../ioarena.git/@BUILD/src/ioarena @@ -74,7 +74,7 @@ libmdbx.a: mdbx.o $(AR) rs $@ $^ libmdbx.so: mdbx.lo - $(CC) $(CFLAGS) $(LDFLAGS) -pthread -shared -o $@ $^ + $(CC) $(CFLAGS) $(LDFLAGS) -save-temps -pthread -shared -o $@ $^ liblmdb.a: lmdb.o $(AR) rs $@ $^ @@ -161,11 +161,11 @@ ifneq ($(wildcard $(IOARENA)),) .PHONY: bench clean-bench re-bench clean-bench: - rm -rf bench-*.txt _ioarena + rm -rf bench-*.txt _ioarena/* re-bench: clean-bench bench -NN := 1000000 +NN := 25000000 define bench-rule bench-$(1).txt: $(3) $(IOARENA) Makefile $(IOARENA) -D $(1) -B crud -m nosync -n $(2) | tee $$@ | grep throughput \