Makefile.am 3.01 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
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
Matthieu Dorier's avatar
Matthieu Dorier committed
20 21 22 23 24
                  lib/libkvgroupserver.la \
		  lib/libsdskv-client.la \
		  lib/libsdskv-server.la

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
25

26
lib_libkvclient_la_SOURCES = src/kv-client.c
27

28
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
29

30
lib_libkvserver_la_SOURCES = src/kv-server.cc \
31
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
32

Matthieu Dorier's avatar
Matthieu Dorier committed
33 34 35
lib_libsdskv_server_la_SOURCES = src/sdskv-server.cc \
				 src/datastore/datastore.cc

Rob Latham's avatar
Rob Latham committed
36
if BUILD_BWTREE
37
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
38
			      src/datastore/bwtree_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
39 40 41

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
42 43 44
endif

if BUILD_BDB
45
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
46 47

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
48 49 50
endif

if BUILD_LEVELDB
51
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
52 53

lib_libsdskv_server_la_SOURCES += src/datastore/leveldb_datastore.cc
Rob Latham's avatar
Rob Latham committed
54 55
endif

56

57 58 59
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

60 61 62 63 64
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 \
65
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
66
		 src/BwTree/src/bwtree.h \
67 68 69
		 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
70

71 72

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
73

74 75

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
76
		test/test-server \
77
		test/bench-client \
78 79
		test/test-mpi \
		test/test-mpi-group
Rob Latham's avatar
Rob Latham committed
80

Rob Latham's avatar
Rob Latham committed
81

82
TESTS = test/test-client \
83 84
        test/test-server \
	test/bench-client \
85 86
	test/test-mpi \
	test/test-mpi-group
87

88
test_test_client_SOURCES = test/test-client.cc
89 90
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
91

92
test_test_server_SOURCES = test/test-server.cc
93
test_test_server_DEPENDENCIES = lib/libkvserver.la
94
test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
95 96

test_test_mpi_SOURCES = test/test-mpi.cc
97

98 99

test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
100
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
101 102 103

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
104
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver ${SERVER_LIBS} ${GROUP_LIBS}
105 106 107 108

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

110

111