Commit 91f73e12 authored by Rich Prohaska's avatar Rich Prohaska

rename libdb.so to libtokudb.so. closes #150

git-svn-id: file:///svn/tokudb@2230 c7de825b-a66e-492c-adef-691d508d4ae1
parent b2ea0abb
...@@ -7,7 +7,7 @@ LDFLAGS = -lz ...@@ -7,7 +7,7 @@ LDFLAGS = -lz
SRCS = $(wildcard *.cpp) SRCS = $(wildcard *.cpp)
OBJS = $(patsubst %.cpp, %.o, $(SRCS)) OBJS = $(patsubst %.cpp, %.o, $(SRCS))
LIBNAME = libtdb_cxx LIBNAME = libtokudb_cxx
default: install default: install
install: $(LIBNAME).a install: $(LIBNAME).a
......
...@@ -5,7 +5,7 @@ TARGETS = $(patsubst %.cpp,%,$(SRCS)) ...@@ -5,7 +5,7 @@ TARGETS = $(patsubst %.cpp,%,$(SRCS))
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage # GCOV_FLAGS = -fprofile-arcs -ftest-coverage
CPPFLAGS = -I../ -I../../include CPPFLAGS = -I../ -I../../include
CXXFLAGS = -Wall $(OPTFLAGS) -g $(GCOV_FLAGS) CXXFLAGS = -Wall $(OPTFLAGS) -g $(GCOV_FLAGS)
LDLIBS = ../../lib/libtdb_cxx.a ../../lib/libdb.a -lz LDLIBS = ../../lib/libtokudb_cxx.a ../../lib/libtokudb.a -lz
ifneq ($(OSX),) ifneq ($(OSX),)
VGRIND= VGRIND=
......
...@@ -35,10 +35,9 @@ check-x: $(TARGET_TDB) ...@@ -35,10 +35,9 @@ check-x: $(TARGET_TDB)
clean: clean:
rm -rf $(TARGETS) $(BENCHDBS) *.gcno *.gcda *.gcov rm -rf $(TARGETS) $(BENCHDBS) *.gcno *.gcda *.gcov
db-benchmark-test-tokudb: ../lib/libtdb_cxx.a db-benchmark-test-tokudb: ../lib/libtokudb_cxx.a
db-benchmark-test-tokudb: db-benchmark-test.cpp db-benchmark-test-tokudb: db-benchmark-test.cpp
# $(CXX) $(CXXFLAGS) -I../include $< -o $@ -DDIRSUF=tokudb ../lib/libdb.a ../lib/libtdb_cxx.a -lz $(CXX) $(CXXFLAGS) -I../include -L../lib -Wl,-rpath,$(PWD)/../lib $< -o $@ -ltokudb -ltokudb_cxx -DDIRSUF=tokudb
$(CXX) $(CXXFLAGS) -I../include -L../lib -Wl,-rpath,$(PWD)/../lib $< -o $@ -ldb -ltdb_cxx -DDIRSUF=tokudb
db-benchmark-test-bdb: db-benchmark-test.cpp db-benchmark-test-bdb: db-benchmark-test.cpp
$(CXX) $(CXXFLAGS) $(BDB_CPPFLAGS) $(BDB_LDFLAGS) $< -o $@ -DDIRSUF=bdb $(CXX) $(CXXFLAGS) $(BDB_CPPFLAGS) $(BDB_LDFLAGS) $< -o $@ -DDIRSUF=bdb
...@@ -19,7 +19,7 @@ BDB_CPPFLAGS = ...@@ -19,7 +19,7 @@ BDB_CPPFLAGS =
BDB_LDFLAGS = -ldb BDB_LDFLAGS = -ldb
endif endif
TDB_CPPFLAGS = -I../include TDB_CPPFLAGS = -I../include
TDB_LDFLAGS = -L../lib -ldb -Wl,-rpath=$(PWD)/../lib TDB_LDFLAGS = -L../lib -ltokudb -Wl,-rpath=$(PWD)/../lib
TARGET_BDB = db-benchmark-test-bdb TARGET_BDB = db-benchmark-test-bdb
TARGET_TDB = db-benchmark-test-tokudb TARGET_TDB = db-benchmark-test-tokudb
......
...@@ -40,6 +40,7 @@ cp include/db_cxx.h $targetdir/include ...@@ -40,6 +40,7 @@ cp include/db_cxx.h $targetdir/include
mkdir $targetdir/lib mkdir $targetdir/lib
cp lib/libtokudb.so $targetdir/lib cp lib/libtokudb.so $targetdir/lib
cp lib/libtokudb_cxx.a $targetdir/lib
mkdir $targetdir/bin mkdir $targetdir/bin
cp utils/tokudb_load_static $targetdir/bin/tokudb_load cp utils/tokudb_load_static $targetdir/bin/tokudb_load
......
# On OSX do: # On OSX do:
# make OSX=OSX # make OSX=OSX
LIBNAME=libdb LIBNAME=libtokudb
OPTFLAGS = -O2 OPTFLAGS = -O2
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage # GCOV_FLAGS = -fprofile-arcs -ftest-coverage
...@@ -55,4 +55,4 @@ $(LIBNAME).$(LIBEXT): $(DBBINS) $(LOCKTREE_BINS) ...@@ -55,4 +55,4 @@ $(LIBNAME).$(LIBEXT): $(DBBINS) $(LOCKTREE_BINS)
$(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS) $(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS)
$(AR) rv $@ $^ $(AR) rv $@ $^
libdb.a(ydb.o): ydb.o $(LIBNAME).a(ydb.o): ydb.o
...@@ -17,7 +17,7 @@ ifneq ($(OSX),) ...@@ -17,7 +17,7 @@ ifneq ($(OSX),)
LIBEXT=dylib LIBEXT=dylib
VGRIND= VGRIND=
BDB_SUPPRESSIONS= BDB_SUPPRESSIONS=
TDB_LOADLIBES = -L../ -ldb TDB_LOADLIBES = -L../ -ltokudb
SETTOKUENV=export DYLD_LIBRARY_PATH=.. ; SETTOKUENV=export DYLD_LIBRARY_PATH=.. ;
UNSETTOKUENV=unset DYLD_LIBRARY_PATH ; UNSETTOKUENV=unset DYLD_LIBRARY_PATH ;
else else
...@@ -29,7 +29,7 @@ else ...@@ -29,7 +29,7 @@ else
BDB_LDFLAGS += -Wl,-rpath,$(BDBDIR)/lib BDB_LDFLAGS += -Wl,-rpath,$(BDBDIR)/lib
endif endif
BDB_LDFLAGS += -lpthread BDB_LDFLAGS += -lpthread
TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,.. -lpthread TDB_LOADLIBES = -L../ -ltokudb -Wl,-rpath,.. -lpthread
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
endif endif
ifeq ($(VGRIND),) ifeq ($(VGRIND),)
......
...@@ -26,11 +26,11 @@ else ...@@ -26,11 +26,11 @@ else
SETTOKUENV= SETTOKUENV=
UNSETTOKUENV= UNSETTOKUENV=
endif endif
LDFLAGS = -L../lib -ldb -lpthread $(TDB_LOADLIBES) LDFLAGS = -L../lib -ltokudb -lpthread $(TDB_LOADLIBES)
# vars to compile bins that handle tokudb using libdb.a # vars to compile bins that handle tokudb using libtokudb.a
STATIC_CPPFLAGS = -I../include STATIC_CPPFLAGS = -I../include
STATIC_LDFLAGS = ../lib/libdb.a -lz STATIC_LDFLAGS = ../lib/libtokudb.a -lz
# vars to compile bins that handle bdb # vars to compile bins that handle bdb
BDB_CPPFLAGS = -I$(BDBDIR)/include BDB_CPPFLAGS = -I$(BDBDIR)/include
......
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