Makefile.am 4.5 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

Matthieu Dorier's avatar
Matthieu Dorier committed
8 9
bin_PROGRAMS = bin/sdskv-server-daemon \
	       bin/sdskv-shutdown \
Matthieu Dorier's avatar
Matthieu Dorier committed
10
	       test/sdskv-open-test \
11 12
	       test/sdskv-put-test \
	       test/sdskv-get-test
Matthieu Dorier's avatar
Matthieu Dorier committed
13

Matthieu Dorier's avatar
Matthieu Dorier committed
14
bin_sdskv_server_daemon_SOURCES = src/sdskv-server-daemon.c
Matthieu Dorier's avatar
Matthieu Dorier committed
15
bin_sdskv_server_daemon_DEPENDENCIES = lib/libsdskv-server.la
Matthieu Dorier's avatar
Matthieu Dorier committed
16 17
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
18

Matthieu Dorier's avatar
Matthieu Dorier committed
19 20 21 22 23
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

24 25 26
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
Matthieu Dorier's avatar
Matthieu Dorier committed
27 28 29 30 31
                  lib/libkvgroupserver.la \
		  lib/libsdskv-client.la \
		  lib/libsdskv-server.la

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
32

33
lib_libkvclient_la_SOURCES = src/kv-client.c
34

35
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
36

37
lib_libkvserver_la_SOURCES = src/kv-server.cc \
38
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
39

Matthieu Dorier's avatar
Matthieu Dorier committed
40 41 42
lib_libsdskv_server_la_SOURCES = src/sdskv-server.cc \
				 src/datastore/datastore.cc

Rob Latham's avatar
Rob Latham committed
43
if BUILD_BWTREE
44
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
45
			      src/datastore/bwtree_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
46 47 48

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
49 50 51
endif

if BUILD_BDB
52
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
53 54

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
55 56 57
endif

if BUILD_LEVELDB
58
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
59 60

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

63

64 65 66
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

67 68 69 70 71
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 \
72
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
73
		 src/BwTree/src/bwtree.h \
74 75 76
		 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
77

78 79

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
80

Matthieu Dorier's avatar
Matthieu Dorier committed
81
check_PROGRAMS = test/sdskv-open-test
Matthieu Dorier's avatar
Matthieu Dorier committed
82

Matthieu Dorier's avatar
Matthieu Dorier committed
83 84
TESTS = test/basic.sh \
	test/open-test.sh \
85 86
       	test/put-test.sh \
	test/get-test.sh
Matthieu Dorier's avatar
Matthieu Dorier committed
87 88 89 90

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

Matthieu Dorier's avatar
Matthieu Dorier committed
91 92 93 94 95 96 97
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
98

99 100 101 102
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

103 104 105 106 107 108 109 110 111 112 113 114
#############################################################
## 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
115

116 117 118 119 120 121
#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
122

123 124 125 126 127
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
128

129 130 131
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
132

133 134 135
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
136

137
#test_test_mpi_SOURCES = test/test-mpi.cc
138

139

140 141
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
142

143 144 145
#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}
146 147

pkgconfigdir = $(libdir)/pkgconfig
148 149
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
150

151

152