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

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

9 10 11 12 13
lib_LTLIBRARIES = libkvclient.la \
                  libkvserver.la

libkvclient_la_SOURCES = src/kv-client.c

Rob Latham's avatar
Rob Latham committed
14
libkvserver_la_SOURCES = src/kv-server.cc \
15
			 src/datastore.cc \
16
			 src/BwTree/src/bwtree.cpp
Rob Latham's avatar
Rob Latham committed
17 18

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

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

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

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

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

41 42
test_test_client_SOURCES = test/test-client.cc
test_test_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
43
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
44
test_test_client_LDADD = -lkvclient
45

46 47
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
48
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
49
test_test_server_LDADD = -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
50 51

test_test_mpi_SOURCES = test/test-mpi.cc
52 53

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
54
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
55
test_test_mpi_LDADD = -lkvclient -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
56 57 58 59

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

61