mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
d44fbafb48
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50363 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
317 B
Makefile
21 lines
317 B
Makefile
SRCS = $(wildcard *.cc)
|
|
TARGETS = $(patsubst %.cc,%,$(SRCS))
|
|
CHECKS = $(patsubst %,%.check,$(TARGETS))
|
|
CPPFLAGS = -I..
|
|
CXXFLAGS = -g
|
|
|
|
ifeq ($(GCOV),1)
|
|
CXXFLAGS += -fprofile-arcs -ftest-coverage
|
|
endif
|
|
|
|
all: $(TARGETS)
|
|
|
|
clean:
|
|
rm -rf $(TARGETS) *.gcov *.gcno *.gcda
|
|
|
|
check: $(CHECKS)
|
|
true
|
|
|
|
%.check: %
|
|
valgrind ./$<
|
|
|