mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
9d70992a1d
git-svn-id: file:///svn/tokudb@1320 c7de825b-a66e-492c-adef-691d508d4ae1
29 lines
582 B
Makefile
29 lines
582 B
Makefile
SRCS = $(wildcard *.cpp)
|
|
TARGETS = $(patsubst %.cpp,%,$(SRCS))
|
|
|
|
CPPFLAGS = -I../ -I../../include
|
|
CXXFLAGS = -Wall -g
|
|
LDLIBS = ../../lib/libtdb_cxx.a ../../lib/libdb.a -lz
|
|
|
|
ifeq ($(OSX),OSX)
|
|
VGRIND=
|
|
else
|
|
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
|
|
endif
|
|
|
|
all: $(TARGETS)
|
|
$(TARGETS): $(DBCXX)
|
|
|
|
$(DBCXX):
|
|
cd ..;make
|
|
|
|
clean:
|
|
rm -rf $(TARGETS)
|
|
|
|
check: $(TARGETS)
|
|
$(VGRIND) ./test1
|
|
$(VGRIND) ./test1e
|
|
$(VGRIND) ./db_create foo.db a b c d
|
|
$(VGRIND) ./db_dump foo.db > foo.out
|
|
(echo " 61";echo " 62";echo " 63";echo " 64")>foo.expectout
|
|
diff foo.out foo.expectout
|