Makefile.am 3.51 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 11 12 13 14
bin_PROGRAMS = src/sdskv-server-daemon

src_sdskv_server_daemon_SOURCES = src/sdskv-server-daemon.c
src_sdskv_server_daemon_DEPENDENCIES = lib/libkvclient.la
src_sdskv_server_daemon_LDFLAGS = -Llib -lsdskv-server
src_sdskv_server_daemon_LDADD = ${LIBS} -lsdskv-server ${SERVER_LIBS}

15 16 17
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
Matthieu Dorier's avatar
Matthieu Dorier committed
18 19 20 21 22
                  lib/libkvgroupserver.la \
		  lib/libsdskv-client.la \
		  lib/libsdskv-server.la

lib_libsdskv_client_la_SOURCES = src/sdskv-client.c
23

24
lib_libkvclient_la_SOURCES = src/kv-client.c
25

26
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
27

28
lib_libkvserver_la_SOURCES = src/kv-server.cc \
29
			     src/datastore/datastore.cc
Rob Latham's avatar
Rob Latham committed
30

Matthieu Dorier's avatar
Matthieu Dorier committed
31 32 33
lib_libsdskv_server_la_SOURCES = src/sdskv-server.cc \
				 src/datastore/datastore.cc

Rob Latham's avatar
Rob Latham committed
34
if BUILD_BWTREE
35
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
36
			      src/datastore/bwtree_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
37 38 39

lib_libsdskv_server_la_SOURCES += src/BwTree/src/bwtree.cpp \
				  src/datastore/bwtree_datastore.cc
40 41 42
endif

if BUILD_BDB
43
lib_libkvserver_la_SOURCES += src/datastore/berkeleydb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
44 45

lib_libsdskv_server_la_SOURCES += src/datastore/berkeleydb_datastore.cc
46 47 48
endif

if BUILD_LEVELDB
49
lib_libkvserver_la_SOURCES += src/datastore/leveldb_datastore.cc
Matthieu Dorier's avatar
Matthieu Dorier committed
50 51

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

54

55 56 57
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

58 59 60 61 62
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 \
63
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
64
		 src/BwTree/src/bwtree.h \
65 66 67
		 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
68

69 70

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
71

72

73 74 75 76 77 78 79 80 81 82 83 84
#############################################################
## 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
85

86 87 88 89 90 91
#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
92

93 94 95 96 97
#TESTS = test/test-client \
#        test/test-server \
#	test/bench-client \
#	test/test-mpi \
#	test/test-mpi-group
98

99 100 101
#test_test_client_SOURCES = test/test-client.cc
#test_test_client_DEPENDENCIES = lib/libkvclient.la
#test_test_client_LDFLAGS = -Llib -lkvclient
102

103 104 105
#test_test_server_SOURCES = test/test-server.cc
#test_test_server_DEPENDENCIES = lib/libkvserver.la
#test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
106

107
#test_test_mpi_SOURCES = test/test-mpi.cc
108

109

110 111
#test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
#test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
112

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

pkgconfigdir = $(libdir)/pkgconfig
118 119
pkgconfig_DATA = maint/sdskv-server.pc \
		 maint/sdskv-client.pc
120

121

122