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

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

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

8 9 10 11 12 13 14 15 16
bin_PROGRAMS = bin/sdskv-server-daemon 	    \
	       bin/sdskv-shutdown 	    \
	       test/sdskv-open-test 	    \
	       test/sdskv-put-test 	    \
	       test/sdskv-length-test 	    \
	       test/sdskv-get-test 	    \
	       test/sdskv-erase-test        \
	       test/sdskv-list-keys-test    \
	       test/sdskv-list-keyvals-test 
Matthieu Dorier's avatar
Matthieu Dorier committed
17

Matthieu Dorier's avatar
Matthieu Dorier committed
18
bin_sdskv_server_daemon_SOURCES = src/sdskv-server-daemon.c
Matthieu Dorier's avatar
Matthieu Dorier committed
19
bin_sdskv_server_daemon_DEPENDENCIES = lib/libsdskv-server.la
Matthieu Dorier's avatar
Matthieu Dorier committed
20 21
bin_sdskv_server_daemon_LDFLAGS = -Llib -lsdskv-server
bin_sdskv_server_daemon_LDADD = ${LIBS} -lsdskv-server ${SERVER_LIBS}
Matthieu Dorier's avatar
Matthieu Dorier committed
22

Matthieu Dorier's avatar
Matthieu Dorier committed
23 24 25 26 27
bin_sdskv_shutdown_SOURCES = src/sdskv-shutdown.c
bin_sdskv_shutdown_DEPENDENCIES = lib/libsdskv-client.la
bin_sdskv_shutdown_LDFLAGS = -Llib -lsdskv-client
bin_sdskv_shutdown_LDADD = ${LIBS} -lsdskv-client

28 29 30
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
Matthieu Dorier's avatar
Matthieu Dorier committed
31 32 33 34 35
                  lib/libkvgroupserver.la \
		  lib/libsdskv-client.la \
		  lib/libsdskv-server.la

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
36

37
lib_libkvclient_la_SOURCES = src/kv-client.c
38

39
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
40

41
lib_libkvserver_la_SOURCES = src/kv-server.cc \
42
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
43

Matthieu Dorier's avatar
Matthieu Dorier committed
44 45 46
lib_libsdskv_server_la_SOURCES = src/sdskv-server.cc \
				 src/datastore/datastore.cc

Rob Latham's avatar
Rob Latham committed
47
if BUILD_BWTREE
48
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
49
			      src/datastore/bwtree_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
50 51 52

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
53 54 55
endif

if BUILD_BDB
56
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
57 58

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
59 60 61
endif

if BUILD_LEVELDB
62
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
63 64

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

67

68 69 70
include_HEADERS = include/sdskv-client.h \
		  include/sdskv-server.h \
		  include/sdskv-common.h
71

72
noinst_HEADERS = src/sds-keyval.h \
Matthieu Dorier's avatar
Matthieu Dorier committed
73
		 src/sds-keyval-group.h \
74 75
		 src/sdskv-rpc-types.h \
		 src/datastore/datastore.h \
76
		 src/datastore/map_datastore.h \
77 78 79 80
		 src/datastore/bwtree_datastore.h \
		 src/datastore/leveldb_datastore.h \
		 src/datastore/berkeleydb_datastore.h \
		 src/datastore/datastore_factory.h \
81
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
82
		 src/BwTree/src/bwtree.h \
83 84 85
		 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
86

87 88

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
89

Matthieu Dorier's avatar
Matthieu Dorier committed
90
check_PROGRAMS = test/sdskv-open-test
Matthieu Dorier's avatar
Matthieu Dorier committed
91

92 93 94 95 96
TESTS = test/basic.sh 		\
	test/open-test.sh 	\
       	test/put-test.sh 	\
	test/length-test.sh 	\
	test/get-test.sh 	\
97
	test/erase-test.sh      \
98 99
	test/list-keys-test.sh  \
	test/list-keyvals-test.sh 
Matthieu Dorier's avatar
Matthieu Dorier committed
100 101 102 103

TESTS_ENVIRONMENT = TIMEOUT="$(TIMEOUT)" \
		    MKTEMP="$(MKTEMP)"

Matthieu Dorier's avatar
Matthieu Dorier committed
104 105 106 107 108 109 110
test_sdskv_open_test_SOURCES = test/sdskv-open-test.cc
test_sdskv_open_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_open_test_LDFLAGS = -Llib -lsdskv-client

test_sdskv_put_test_SOURCES = test/sdskv-put-test.cc
test_sdskv_put_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_put_test_LDFLAGS = -Llib -lsdskv-client
111

112 113 114 115
test_sdskv_length_test_SOURCES = test/sdskv-length-test.cc
test_sdskv_length_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_length_test_LDFLAGS = -Llib -lsdskv-client

116 117 118 119
test_sdskv_get_test_SOURCES = test/sdskv-get-test.cc
test_sdskv_get_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_get_test_LDFLAGS = -Llib -lsdskv-client

120 121 122 123
test_sdskv_list_keys_test_SOURCES = test/sdskv-list-keys-test.cc
test_sdskv_list_keys_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_list_keys_test_LDFLAGS = -Llib -lsdskv-client

124 125 126
test_sdskv_list_keyvals_test_SOURCES = test/sdskv-list-kv-test.cc
test_sdskv_list_keyvals_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_list_keyvals_test_LDFLAGS = -Llib -lsdskv-client
127

Matthieu Dorier's avatar
Matthieu Dorier committed
128 129 130 131
test_sdskv_erase_test_SOURCES = test/sdskv-erase-test.cc
test_sdskv_erase_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_erase_test_LDFLAGS = -Llib -lsdskv-client

132 133 134 135 136 137 138 139 140 141 142 143
#############################################################
## 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
144

145 146 147 148 149 150
#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
151

152 153 154 155 156
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
157

158 159 160
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
161

162 163 164
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
165

166
#test_test_mpi_SOURCES = test/test-mpi.cc
167

168

169 170
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
171

172 173 174
#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}
175 176

pkgconfigdir = $(libdir)/pkgconfig
177 178
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
179

180

181