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

8 9 10
bin_PROGRAMS = test/bench-client \
	       test/test-client \
	       test/test-server
Rob Latham's avatar
Rob Latham committed
11

12
test_bench_client_SOURCES = test/bench-client.cc
13 14
test_bench_client_DEPENDENCIES = lib/libkvclient.la
test_bench_client_LDFLAGS = -Llib -lkvclient
Rob Latham's avatar
Rob Latham committed
15
test_bench_client_LDADD = ${LIBS} -lkvclient
16

17 18 19 20
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
                  lib/libkvgroupserver.la
21

22
lib_libkvclient_la_SOURCES = src/kv-client.c
23

24
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
25

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

if BUILD_BWTREE
30 31 32 33 34 35 36 37 38 39
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp \
			      src/bwtree_datastore.cc
endif

if BUILD_BDB
lib_libkvserver_la_SOURCES += src/berkeleydb_datastore.cc
endif

if BUILD_LEVELDB
lib_libkvserver_la_SOURCES += src/leveldb_datastore.cc
Rob Latham's avatar
Rob Latham committed
40 41
endif

42

43 44 45
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

Rob Latham's avatar
Rob Latham committed
46
noinst_HEADERS = src/datastore.h \
47
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
48
		 src/BwTree/src/bwtree.h \
49 50 51
		 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
52

53 54

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
55

56 57

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
58
		test/test-server \
59
		test/bench-client \
60 61
		test/test-mpi \
		test/test-mpi-group
Rob Latham's avatar
Rob Latham committed
62

Rob Latham's avatar
Rob Latham committed
63

64
TESTS = test/test-client \
65 66
        test/test-server \
	test/bench-client \
67 68
	test/test-mpi \
	test/test-mpi-group
69

70
test_test_client_SOURCES = test/test-client.cc
71 72
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
73

74
test_test_server_SOURCES = test/test-server.cc
75
test_test_server_DEPENDENCIES = lib/libkvserver.la
76
test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
77 78

test_test_mpi_SOURCES = test/test-mpi.cc
79

80 81

test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
82
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
83 84 85

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
86
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver ${SERVER_LIBS} ${GROUP_LIBS}
87 88 89 90

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = maint/kv-server.pc \
		 maint/kv-client.pc
91

92

93