mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
95416f09a8
git-svn-id: file:///svn/tokudb@1693 c7de825b-a66e-492c-adef-691d508d4ae1
23 lines
491 B
Makefile
23 lines
491 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))
|
|
|
|
LIBNAME = libtdb_cxx
|
|
|
|
default: install
|
|
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) rv $@ $(OBJS)
|
|
clean:
|
|
rm -f $(OBJS) $(LIBNAME).a $(LIBNAME).so *.gcno *.gcda *.gcov
|
|
|
|
|