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

3 4 5
bin_PROGRAMS = test/bench-client \
	       test/test-client \
	       test/test-server
6
test_bench_client_SOURCES = test/bench-client.cc
7
test_bench_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
8
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
9
test_bench_client_DEPENDENCIES = libkvclient.la
10 11
test_bench_client_LDADD = -lkvclient

12 13 14 15 16
lib_LTLIBRARIES = libkvclient.la \
                  libkvserver.la

libkvclient_la_SOURCES = src/kv-client.c

Rob Latham's avatar
Rob Latham committed
17
libkvserver_la_SOURCES = src/kv-server.cc \
18
			 src/datastore.cc \
19
			 src/BwTree/src/bwtree.cpp
Rob Latham's avatar
Rob Latham committed
20 21

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

include_HEADERS = src/sds-keyval.h
25 26 27 28
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
29 30

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
31
		test/test-server \
32 33
		test/bench-client \
		test/test-mpi
Rob Latham's avatar
Rob Latham committed
34 35 36 37

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

TESTS = test/test-client \
40 41 42
        test/test-server \
	test/bench-client \
	test/test-mpi
43

44 45
test_test_client_SOURCES = test/test-client.cc
test_test_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
46
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
47
test_test_client_DEPENDENCIES = libkvclient.la
48
test_test_client_LDADD = -lkvclient
49

50 51
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
52
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
53
test_test_server_DEPENDENCIES = libkvserver.la
54
test_test_server_LDADD = -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
55 56

test_test_mpi_SOURCES = test/test-mpi.cc
57 58

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
59
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
60
test_test_mpi_DEPENDENCIES = ${lib_LTLIBRARIES}
61
test_test_mpi_LDADD = -lkvclient -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
62 63 64 65

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

67