Makefile.am 976 Bytes
Newer Older
1 2
ACLOCAL_AMFLAGS="-Im4"

Rob Latham's avatar
Rob Latham committed
3 4 5 6
bin_PROGRAMS = 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
7 8 9 10 11 12

lib_LTLIBRARIES = libkvclient.la \
                  libkvserver.la

libkvclient_la_SOURCES = src/kv-client.c

Rob Latham's avatar
Rob Latham committed
13 14 15 16 17
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
18 19 20 21 22 23 24 25 26 27 28 29 30 31

include_HEADERS = src/sds-keyval.h

check_PROGRAMS = test/test-client \
		test/test-server

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
32 33 34 35

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