Makefile.am 4.07 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 10
bin_PROGRAMS = bin/sdskv-server-daemon \
	       bin/sdskv-shutdown \
	       test/sdskv-client-test
Matthieu Dorier's avatar
Matthieu Dorier committed
11

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

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

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

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
30

31
lib_libkvclient_la_SOURCES = src/kv-client.c
32

33
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
34

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

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

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

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
47 48 49
endif

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

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
53 54 55
endif

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

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

61

62 63 64
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

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

76 77

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
78

Matthieu Dorier's avatar
Matthieu Dorier committed
79 80 81 82 83 84 85 86 87 88
check_PROGRAMS = test/sdskv-client-test

TESTS = test/basic.sh

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

test_sdskv_client_test_SOURCES = test/sdskv-client-test.cc
test_sdskv_client_test_DEPENDENCIES = lib/libsdskv-client.la
test_sdskv_client_test_LDFLAGS = -Llib -lsdskv-client
89

90 91 92 93 94 95 96 97 98 99 100 101
#############################################################
## 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
102

103 104 105 106 107 108
#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
109

110 111 112 113 114
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
115

116 117 118
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
119

120 121 122
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
123

124
#test_test_mpi_SOURCES = test/test-mpi.cc
125

126

127 128
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
129

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

pkgconfigdir = $(libdir)/pkgconfig
135 136
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
137

138

139