Makefile.am 2.75 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
lib_LTLIBRARIES = libkvclient.la \
                  libkvserver.la

15 16 17
lib_LTGLIBRARIES = libkvgroupclient.la \
                   libkvgroupserver.la

18 19
libkvclient_la_SOURCES = src/kv-client.c

20 21 22 23
libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
libkvgroupclient_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
libkvgroupclient_la_CPPFLAGS = ${CPPFLAGS}

Rob Latham's avatar
Rob Latham committed
24
libkvserver_la_SOURCES = src/kv-server.cc \
25
			 src/datastore.cc \
26
			 src/BwTree/src/bwtree.cpp
Rob Latham's avatar
Rob Latham committed
27
libkvserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
28
libkvserver_la_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src/BwTree/src
29

30 31 32
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

33 34 35 36
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
37 38 39 40
libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
libkvgroupserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
libkvgroupserver_la_CPPFLAGS = ${CPPFLAGS}

41 42

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
43
		test/test-server \
44 45
		test/bench-client \
		test/test-mpi
Rob Latham's avatar
Rob Latham committed
46 47 48 49

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

TESTS = test/test-client \
52 53 54
        test/test-server \
	test/bench-client \
	test/test-mpi
55

56 57
test_test_client_SOURCES = test/test-client.cc
test_test_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
58
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
59
test_test_client_DEPENDENCIES = libkvclient.la
60
test_test_client_LDADD = -lkvclient
61

62 63
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
64
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
65
test_test_server_DEPENDENCIES = libkvserver.la
66
test_test_server_LDADD = -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
67 68

test_test_mpi_SOURCES = test/test-mpi.cc
69 70

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
71
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
72
test_test_mpi_DEPENDENCIES = ${lib_LTLIBRARIES}
73
test_test_mpi_LDADD = -lkvclient -lkvserver -ldb -ldb_cxx -ldb_stl -lleveldb -lsnappy -lboost_filesystem -lboost_system
74 75 76 77

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

79