mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
866597e6d1
git-svn-id: file:///svn/toku/tokudb@32232 c7de825b-a66e-492c-adef-691d508d4ae1
49 lines
1 KiB
Makefile
49 lines
1 KiB
Makefile
# -*- Mode: Makefile -*-
|
|
# standard build: make
|
|
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
|
|
|
.DEFAULT_GOAL= default
|
|
TOKUROOT=../
|
|
INCLUDEDIRS=-I.
|
|
DEPEND_COMPILE += \
|
|
./*.h \
|
|
#end
|
|
|
|
HERE = cxx
|
|
include $(TOKUROOT)toku_include/Makefile.include
|
|
#
|
|
#
|
|
# OPTFLAGS = -O2
|
|
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage
|
|
CPPFLAGS = -I../include -I../toku_include
|
|
CXXFLAGS = $(GCC_VERSION_SPECIFIC) -Werror -Wall -g $(OPTFLAGS) $(GCOV_FLAGS)
|
|
LDFLAGS = -lz
|
|
SRCS = $(wildcard *.cpp)
|
|
OBJS = $(patsubst %.cpp, %.o, $(SRCS))
|
|
|
|
ifeq ($(CC),icc)
|
|
CXXFLAGS += -diag-disable 981
|
|
CXX=icc
|
|
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
|
|
|
|
|