mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
SRCS = $(wildcard *.cc)
|
|
TARGETS = $(patsubst %.cc,%,$(SRCS))
|
|
CHECKS = $(patsubst %,%.check,$(TARGETS))
|
|
CPPFLAGS = -I.. -D__STDC_FORMAT_MACROS
|
|
CXXFLAGS = -g -Wall -Wextra -Wno-missing-field-initializers -Wshadow
|
|
|
|
FRACTALTREE_BASE_DIR = ../ft-index
|
|
FRACTALTREE_INSTALL_DIR = $(FRACTALTREE_BASE_DIR)/install.debug
|
|
VALGRIND = valgrind -q --leak-check=full --show-reachable=yes --suppressions=$(FRACTALTREE_BASE_DIR)/ft/valgrind.suppressions --soname-synonyms=somalloc=*tokuportability*
|
|
|
|
ifeq ($(GCOV),1)
|
|
CXXFLAGS += -fprofile-arcs -ftest-coverage
|
|
endif
|
|
|
|
all: $(TARGETS)
|
|
|
|
clean:
|
|
rm -rf $(TARGETS) *.gcov *.gcno *.gcda *.testdir *.dSYM
|
|
|
|
check: $(CHECKS)
|
|
true
|
|
|
|
%.check: %
|
|
LD_LIBRARY_PATH=$(FRACTALTREE_INSTALL_DIR)/lib $(VALGRIND) ./$<
|
|
|
|
card.check: card_test.check card_1.check card_inf.check card_inf_1.check card_random_1.check card_etime.check
|
|
true
|
|
|
|
max_test.check: max_test
|
|
$(VALGRIND) ./$< 1 2
|
|
|
|
%: %.cc
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -g -o $@ $<
|
|
|
|
card_%: card_%.cc
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -g -o $@ $< -I.. -I$(FRACTALTREE_INSTALL_DIR)/include -L$(FRACTALTREE_INSTALL_DIR)/lib -ltokufractaltree -ltokuportability
|