Makefile.am 3.23 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
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
Matthieu Dorier's avatar
Matthieu Dorier committed
11 12 13 14 15
                  lib/libkvgroupserver.la \
		  lib/libsdskv-client.la \
		  lib/libsdskv-server.la

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
16

17
lib_libkvclient_la_SOURCES = src/kv-client.c
18

19
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
20

21
lib_libkvserver_la_SOURCES = src/kv-server.cc \
22
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
23

Matthieu Dorier's avatar
Matthieu Dorier committed
24 25 26
lib_libsdskv_server_la_SOURCES = src/sdskv-server.cc \
				 src/datastore/datastore.cc

Rob Latham's avatar
Rob Latham committed
27
if BUILD_BWTREE
28
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
29
			      src/datastore/bwtree_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
30 31 32

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
33 34 35
endif

if BUILD_BDB
36
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
37 38

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
39 40 41
endif

if BUILD_LEVELDB
42
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
43 44

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

47

48 49 50
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

51 52 53 54 55
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 \
56
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
57
		 src/BwTree/src/bwtree.h \
58 59 60
		 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
61

62 63

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
64

65

66 67 68 69 70 71 72 73 74 75 76 77
#############################################################
## tests bellow correspond to old tests (see old-test folder)
#############################################################

#bin_PROGRAMS = test/bench-client \
#	       test/test-client \
#	       test/test-server

#test_bench_client_SOURCES = test/bench-client.cc
#test_bench_client_DEPENDENCIES = lib/libkvclient.la
#test_bench_client_LDFLAGS = -Llib -lkvclient
#test_bench_client_LDADD = ${LIBS} -lkvclient
Rob Latham's avatar
Rob Latham committed
78

79 80 81 82 83 84
#check_PROGRAMS = test/test-client \
#		test/test-server \
#		test/bench-client \
#		test/test-mpi \
#		test/test-mpi-group
#
Rob Latham's avatar
Rob Latham committed
85

86 87 88 89 90
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
91

92 93 94
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
95

96 97 98
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
99

100
#test_test_mpi_SOURCES = test/test-mpi.cc
101

102

103 104
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
105

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

pkgconfigdir = $(libdir)/pkgconfig
111 112
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
113

114

115