Makefile.am 1.3 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
libkvserver_la_SOURCES = src/kv-server.cc \
9
			 src/BwTree/src/bwtree.cpp
Rob Latham's avatar
Rob Latham committed
10 11 12

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
		test/test-server \
22 23
		test/bench-client \
		test/test-mpi
Rob Latham's avatar
Rob Latham committed
24 25 26 27

test_bench_client_SOURCES = test/bench-client.cc
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_bench_client_LDADD = ${LIBS} -lkvclient
28 29

TESTS = test/test-client \
30 31 32
        test/test-server \
	test/bench-client \
	test/test-mpi
33 34 35 36 37

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

test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
38 39 40 41 42
test_test_server_LDADD =  ${LIBS} -lkvserver -lstdc++

test_test_mpi_SOURCES = test/test-mpi.cc
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_test_mpi_LDADD =  ${LIBS} -lkvclient -lkvserver
43 44 45 46

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