Makefile.am 1.84 KB
Newer Older
1 2
ACLOCAL_AMFLAGS="-Im4"

3 4 5 6 7
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 = -lkvclient

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
libkvserver_la_SOURCES = src/kv-server.cc \
14
			 src/datastore.cc \
15
			 src/BwTree/src/bwtree.cpp
Rob Latham's avatar
Rob Latham committed
16 17

libkvserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
18
libkvserver_la_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src/BwTree/src
19 20

include_HEADERS = src/sds-keyval.h
21 22 23 24
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
25 26

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
27
		test/test-server \
28 29
		test/bench-client \
		test/test-mpi
Rob Latham's avatar
Rob Latham committed
30 31 32 33

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

TESTS = test/test-client \
36 37 38
        test/test-server \
	test/bench-client \
	test/test-mpi
39 40

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

43 44 45
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src -I${srcdir}/src/BwTree/src
46
test_test_server_LDADD = -lkvserver -lleveldb -lsnappy -lboost_filesystem -lboost_system
47 48

test_test_mpi_SOURCES = test/test-mpi.cc
49 50 51

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src -I${srcdir}/src/BwTree/src
52
test_test_mpi_LDADD = -lkvclient -lkvserver -lleveldb -lsnappy -lboost_filesystem -lboost_system
53 54 55 56

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

58