Commit 9a958751 authored by Yoni Fogel's avatar Yoni Fogel

Modified makefiles for inclusion of redblack

git-svn-id: file:///svn/tokudb@2729 c7de825b-a66e-492c-adef-691d508d4ae1
parent db92f134
...@@ -16,20 +16,19 @@ CFLAGS+= $(VISIBILITY) ...@@ -16,20 +16,19 @@ CFLAGS+= $(VISIBILITY)
ifneq ($(OSX),) ifneq ($(OSX),)
LIBEXT=dylib LIBRARY=$(LIBNAME).dylib
SHARED=-dynamiclib SHARED=-dynamiclib
RPATHNAME=-install_name @rpath/$(LIBNAME).$(LIBEXT) RPATHNAME=-install_name @rpath/$(LIBRARY)
CFLAGS+=-fno-common CFLAGS+=-fno-common
else else
LIBEXT=so LIBRARY=$(LIBNAME).so
SHARED=-shared
SHARED=-shared $(EXPORTMAP) SHARED=-shared $(EXPORTMAP)
RPATHNAME= RPATHNAME=
endif endif
.PHONY: install logformat .PHONY: install logformat
install: logformat locktree $(LIBNAME).$(LIBEXT) $(LIBNAME).a install: logformat locktree $(LIBRARY) $(LIBNAME).a
cp $(LIBNAME).$(LIBEXT) ../lib/ cp $(LIBRARY) ../lib/
cp $(LIBNAME).a ../lib cp $(LIBNAME).a ../lib
logformat: logformat:
...@@ -38,14 +37,14 @@ logformat: ...@@ -38,14 +37,14 @@ logformat:
locktree: locktree:
cd lock_tree && make cd lock_tree && make
check: $(LIBNAME).$(LIBEXT) check: $(LIBRARY)
python tokuglobals.py $(LIBNAME).$(LIBEXT) python tokuglobals.py $(LIBRARY)
strip: $(LIBNAME).$(LIBEXT) strip: $(LIBRARY)
strip $(LIBNAME).$(LIBEXT) strip $(LIBRARY)
clean: clean:
rm -rf $(LIBNAME).$(LIBEXT) $(LIBNAME).a *.o *.gcno *.gcda *.gcov rm -rf $(LIBRARY) $(LIBNAME).a *.o *.gcno *.gcda *.gcov
cd tests && make clean cd tests && make clean
cd lock_tree && make clean cd lock_tree && make clean
...@@ -57,7 +56,7 @@ RANGETREE_BINS = range_tree/rangetree.o ...@@ -57,7 +56,7 @@ RANGETREE_BINS = range_tree/rangetree.o
LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o $(RANGETREE_BINS) LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o $(RANGETREE_BINS)
$(LIBNAME).$(LIBEXT): $(DBBINS) $(LOCKTREE_BINS) $(LIBRARY): $(DBBINS) $(LOCKTREE_BINS)
cc $(CPPFLAGS) $^ $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME) cc $(CPPFLAGS) $^ $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
$(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS) $(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS)
......
...@@ -19,8 +19,6 @@ SHARED=-shared $(EXPORTMAP) ...@@ -19,8 +19,6 @@ SHARED=-shared $(EXPORTMAP)
RPATHNAME= RPATHNAME=
endif endif
LIBRARY=$(LIBNAME).$(LIBEXT)
ifneq ($(GCOV),) ifneq ($(GCOV),)
GCOV_FLAGS = -fprofile-arcs -ftest-coverage GCOV_FLAGS = -fprofile-arcs -ftest-coverage
else else
......
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