Commit 19e76243 authored by Rich Prohaska's avatar Rich Prohaska

allow build with non default BDB

git-svn-id: file:///svn/tokudb@663 c7de825b-a66e-492c-adef-691d508d4ae1
parent c944dffc
......@@ -16,6 +16,11 @@ TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,..
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
endif
ifneq ($(BDB),"")
BDB_CPPFLAGS = -I$(BDB)/include
BDB_LDFLAGS = -L$(BDB)/lib
endif
LIBNAME=libdb.$(LIBEXT)
CFLAGS = -Wall -Werror -O0 -g
......@@ -69,7 +74,7 @@ NO_VGRIND = \
$(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND=
%.bdb: %.c
$(UNSETTOKUENV); cc -DDIR=\"dir.$<.bdb\" -DUSE_BDB $(CFLAGS) $< -ldb -o $@
$(UNSETTOKUENV); cc -DDIR=\"dir.$<.bdb\" $(BDB_CPPFLAGS) -DUSE_BDB $(CFLAGS) $< $(BDB_LDFLAGS) -ldb -o $@
%.tdb: %.c
$(SETTOKUENV); cc -DDIR=\"dir.$<.tdb\" -DUSE_TDB $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment