mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
0ee4e385f1
Details: I merged with {{{ svn merge -r6585:7747 https://svn.tokutek.com/tokudb/toku/tokudb }}} then resolved conflicts. The most interesting conflict was the double inclusion of the {{{BLOCK_ALLOCATOR_HEADER_RESERVE}}} for {{{brt-internal.h}}}. The subversion merger got confused because the patch was applied with an extra space at the end of each line. git-svn-id: file:///svn/toku/tokudb.1243@7750 c7de825b-a66e-492c-adef-691d508d4ae1
34 lines
741 B
Makefile
34 lines
741 B
Makefile
# OPTFLAGS = -O2
|
|
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage
|
|
CPPFLAGS = -I../include
|
|
CXXFLAGS = -Wall -g $(OPTFLAGS) $(GCOV_FLAGS)
|
|
CC = c++
|
|
LDFLAGS = -lz
|
|
SRCS = $(wildcard *.cpp)
|
|
OBJS = $(patsubst %.cpp, %.o, $(SRCS))
|
|
|
|
ifeq ($(CC),icc)
|
|
CXXFLAGS += -diag-disable 981
|
|
endif
|
|
|
|
LIBNAME = libtokudb_cxx
|
|
|
|
default: install build
|
|
build: $(LIBNAME).a
|
|
if ! diff $(LIBNAME).a ../lib/$(LIBNAME).a >/dev/null 2>&1; then cp $< ../lib/; fi
|
|
cd tests; $(MAKE) build
|
|
check:
|
|
cd tests; $(MAKE) check
|
|
install: $(LIBNAME).a
|
|
cp $< ../lib/
|
|
$(OBJS): ../include/db_cxx.h
|
|
|
|
test1: test1.o dbt.o db.o dbenv.o ../lib/libdb.a
|
|
|
|
$(LIBNAME).a: $(OBJS)
|
|
$(AR) cr $@ $(OBJS)
|
|
clean:
|
|
rm -f $(OBJS) $(LIBNAME).a $(LIBNAME).so *.gcno *.gcda *.gcov
|
|
cd tests; $(MAKE) clean
|
|
|
|
|