mariadb/db-benchmark-test/Makefile
Bradley C. Kuszmaul 35404cb2eb Get db-benchmark-test to run with transactions
git-svn-id: file:///svn/tokudb@376 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-01 21:19:53 +00:00

29 lines
762 B
Makefile

# standard build: make
# build with Berkeley DB 4.1: make BDB=/usr/local/BerkeleyDB.4.1
# build with TokuDB: make BDB=~/svn/tokudb
BENCHDBS = bench.bdb/ bench.tokudb
CFLAGS = -Wall -Werror -g
# CFLAGS += -pg
CFLAGS += -O2
ifdef BDB
CPPFLAGS = -I$(BDB)/include
LDFLAGS = -L$(BDB)/lib -ldb -lpthread -Wl,-rpath,$(BDB)/lib
else
CPPFLAGS =
LDFLAGS = -ldb
endif
TARGETS = db-benchmark-test-bdb db-benchmark-test-tokudb
default: $(TARGETS)
clean:
rm -rf $(TARGETS) $(BENCHDBS)
db-benchmark-test-tokudb: db-benchmark-test.c
cc -Wall -Werror -g -O2 -I../include -L../lib -ldb -Wl,-rpath,../lib $< -o $@ -DDIRSUF=tokudb
db-benchmark-test-bdb: db-benchmark-test.c
cc -Wall -Werror -g -O2 -ldb $< -o $@ -DDIRSUF=bdb