Makefile.am 1.09 KB
Newer Older
1 2 3 4 5 6 7
ACLOCAL_AMFLAGS="-Im4"

lib_LTLIBRARIES = libkvclient.la \
                  libkvserver.la

libkvclient_la_SOURCES = src/kv-client.c

Rob Latham's avatar
Rob Latham committed
8 9 10 11 12
libkvserver_la_SOURCES = src/kv-server.cc \
			src/BwTree/src/bwtree.cpp

libkvserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
libkvserver_la_CPPFLAGS = -I${srcdir}/src/BwTree/src
13 14

include_HEADERS = src/sds-keyval.h
15 16 17 18
noinst_HEADERS = src/BwTree/src/bwtree.h \
		 src/BwTree/src/atomic_stack.h\
		 src/BwTree/src/bloom_filter.h \
		 src/BwTree/src/sorted_small_set.h
19 20

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
21 22 23 24 25 26
		test/test-server \
		test/bench-client

test_bench_client_SOURCES = test/bench-client.cc
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_bench_client_LDADD = ${LIBS} -lkvclient
27 28 29 30 31 32 33 34 35

TESTS = test/test-client \
        test/test-server

test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_test_client_LDADD =  ${LIBS} -lkvclient

test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_test_server_LDADD =  ${LIBS} -lkvserver
36 37 38 39

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = maint/kv-server.pc \
		 maint/kv-client.pc