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
VGRIND=
TDB_LOADLIBES = -L../ -ldb
SETTOKUENV=export DYLD_LIBRARY_PATH=..
UNSETTOKUENV=unset DYLD_LIBRARY_PATH
else
SETTOKUENV=
LIBEXT=so
TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,..
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
......@@ -50,7 +50,7 @@ $(ALL_TESTS):
echo $@
%.bdbrun: %.bdb
$(VGRIND) ./$<
$(UNSETTOKUENV); $(VGRIND) ./$<
%.tdbrun: %.tdb
$(SETTOKUENV); $(VGRIND) ./$<
......@@ -67,9 +67,9 @@ NO_VGRIND = \
$(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND=
%.bdb: %.c
cc -DDIR=\"dir.$<.bdb\" -DUSE_BDB $(CFLAGS) $< -ldb -o $@
$(UNSETTOKUENV); cc -DDIR=\"dir.$<.bdb\" -DUSE_BDB $(CFLAGS) $< -ldb -o $@
%.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:
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