Makefile.am 5.95 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
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    \
16 17
	       test/sdskv-list-keyvals-test \
	       test/sdskv-list-keys-prefix-test 
Matthieu Dorier's avatar
Matthieu Dorier committed
18

Matthieu Dorier's avatar
Matthieu Dorier committed
19
bin_sdskv_server_daemon_SOURCES = src/sdskv-server-daemon.c
Matthieu Dorier's avatar
Matthieu Dorier committed
20
bin_sdskv_server_daemon_DEPENDENCIES = lib/libsdskv-server.la
Matthieu Dorier's avatar
Matthieu Dorier committed
21 22
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
23

Matthieu Dorier's avatar
Matthieu Dorier committed
24 25 26 27 28
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

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

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
37

38
lib_libkvclient_la_SOURCES = src/kv-client.c
39

40
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
41

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

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

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

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

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

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

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

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

68

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

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

88 89

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
90

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

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

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

Matthieu Dorier's avatar
Matthieu Dorier committed
106 107 108 109 110 111 112
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
113

114 115 116 117
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

118 119 120 121
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

122 123 124 125
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

126 127 128 129
test_sdskv_list_keys_prefix_test_SOURCES = test/sdskv-list-keys-prefix-test.cc
test_sdskv_list_keys_prefix_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_list_keys_prefix_test_LDFLAGS = -Llib -lsdskv-client

130 131 132
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
133

Matthieu Dorier's avatar
Matthieu Dorier committed
134 135 136 137
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

138 139 140 141 142 143 144 145 146 147 148 149
#############################################################
## 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
150

151 152 153 154 155 156
#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
157

158 159 160 161 162
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
163

164 165 166
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
167

168 169 170
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
171

172
#test_test_mpi_SOURCES = test/test-mpi.cc
173

174

175 176
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
177

178 179 180
#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}
181 182

pkgconfigdir = $(libdir)/pkgconfig
183 184
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
185

186

187