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

3
SERVER_LIBS=@SERVER_LIBS@
4
CLIENT_LiBS=@CLIENT_LIBS@
5

Rob Latham's avatar
Rob Latham committed
6 7
AM_CPPFLAGS = -I${srcdir}/src

8 9 10
bin_PROGRAMS = test/bench-client \
	       test/test-client \
	       test/test-server
Rob Latham's avatar
Rob Latham committed
11

12
test_bench_client_SOURCES = test/bench-client.cc
13 14
test_bench_client_DEPENDENCIES = lib/libkvclient.la
test_bench_client_LDFLAGS = -Llib -lkvclient
Rob Latham's avatar
Rob Latham committed
15
test_bench_client_LDADD = ${LIBS} -lkvclient
16

17 18 19 20
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
                  lib/libkvgroupserver.la
21

22
lib_libkvclient_la_SOURCES = src/kv-client.c
23

24
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
25

26
lib_libkvserver_la_SOURCES = src/kv-server.cc \
27
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
28 29

if BUILD_BWTREE
30
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
31
			      src/datastore/bwtree_datastore.cc
32 33 34
endif

if BUILD_BDB
35
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
36 37 38
endif

if BUILD_LEVELDB
39
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Rob Latham's avatar
Rob Latham committed
40 41
endif

42

43 44 45
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

46 47 48 49 50
noinst_HEADERS = src/datastore/datastore.h \
		 src/datastore/bwtree_datastore.h \
		 src/datastore/leveldb_datastore.h \
		 src/datastore/berkeleydb_datastore.h \
		 src/datastore/datastore_factory.h \
51
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
52
		 src/BwTree/src/bwtree.h \
53 54 55
		 src/BwTree/src/atomic_stack.h\
		 src/BwTree/src/bloom_filter.h \
		 src/BwTree/src/sorted_small_set.h
Rob Latham's avatar
Rob Latham committed
56

57 58

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
59

60 61

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
62
		test/test-server \
63
		test/bench-client \
64 65
		test/test-mpi \
		test/test-mpi-group
Rob Latham's avatar
Rob Latham committed
66

Rob Latham's avatar
Rob Latham committed
67

68
TESTS = test/test-client \
69 70
        test/test-server \
	test/bench-client \
71 72
	test/test-mpi \
	test/test-mpi-group
73

74
test_test_client_SOURCES = test/test-client.cc
75 76
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
77

78
test_test_server_SOURCES = test/test-server.cc
79
test_test_server_DEPENDENCIES = lib/libkvserver.la
80
test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
81 82

test_test_mpi_SOURCES = test/test-mpi.cc
83

84 85

test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
86
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
87 88 89

test_test_mpi_group_SOURCES = test/test-mpi-group.cc
test_test_mpi_group_DEPENDENCIES = lib/libkvgroupserver.la lib/libkvgroupclient.la lib/libkvserver.la lib/libkvclient.la
90
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver ${SERVER_LIBS} ${GROUP_LIBS}
91 92 93 94

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

96

97