Commit 5af44c8d authored by Yoni Fogel's avatar Yoni Fogel

Attempt to port makefile to linux

git-svn-id: file:///svn/tokudb@661 c7de825b-a66e-492c-adef-691d508d4ae1
parent 03fa3c84
...@@ -7,8 +7,8 @@ LIBEXT=dylib ...@@ -7,8 +7,8 @@ LIBEXT=dylib
VGRIND= VGRIND=
TDB_LOADLIBES = -L../ -ldb TDB_LOADLIBES = -L../ -ldb
SETTOKUENV=export DYLD_LIBRARY_PATH=.. SETTOKUENV=export DYLD_LIBRARY_PATH=..
UNSETTOKUENV=unset DYLD_LIBRARY_PATH
else else
SETTOKUENV=
LIBEXT=so LIBEXT=so
TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,.. TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,..
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
...@@ -50,7 +50,7 @@ $(ALL_TESTS): ...@@ -50,7 +50,7 @@ $(ALL_TESTS):
echo $@ echo $@
%.bdbrun: %.bdb %.bdbrun: %.bdb
$(VGRIND) ./$< $(UNSETTOKUENV); $(VGRIND) ./$<
%.tdbrun: %.tdb %.tdbrun: %.tdb
$(SETTOKUENV); $(VGRIND) ./$< $(SETTOKUENV); $(VGRIND) ./$<
...@@ -67,9 +67,9 @@ NO_VGRIND = \ ...@@ -67,9 +67,9 @@ NO_VGRIND = \
$(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND= $(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND=
%.bdb: %.c %.bdb: %.c
cc -DDIR=\"dir.$<.bdb\" -DUSE_BDB $(CFLAGS) $< -ldb -o $@ $(UNSETTOKUENV); cc -DDIR=\"dir.$<.bdb\" -DUSE_BDB $(CFLAGS) $< -ldb -o $@
%.tdb: %.c %.tdb: %.c
cc -DDIR=\"dir.$<.tdb\" -DUSE_TDB $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@ $(SETTOKUENV); cc -DDIR=\"dir.$<.tdb\" -DUSE_TDB $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@
make_libs: make_libs:
cd ..;make cd ..;make
......
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