Makefile.am 2.2 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 30 31 32
                        src/datastore.cc

if BUILD_BWTREE
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp
endif

33

34 35 36
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

Rob Latham's avatar
Rob Latham committed
37
noinst_HEADERS = src/datastore.h \
38
		 src/keyval-internal.h \
Rob Latham's avatar
Rob Latham committed
39
		 src/BwTree/src/bwtree.h \
40 41 42
		 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
43

44 45

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
46

47 48

check_PROGRAMS = test/test-client \
Rob Latham's avatar
Rob Latham committed
49
		test/test-server \
50
		test/bench-client \
51 52
		test/test-mpi \
		test/test-mpi-group
Rob Latham's avatar
Rob Latham committed
53

Rob Latham's avatar
Rob Latham committed
54

55
TESTS = test/test-client \
56 57
        test/test-server \
	test/bench-client \
58 59
	test/test-mpi \
	test/test-mpi-group
60

61
test_test_client_SOURCES = test/test-client.cc
62 63
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
64

65
test_test_server_SOURCES = test/test-server.cc
66
test_test_server_DEPENDENCIES = lib/libkvserver.la
67
test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
68 69

test_test_mpi_SOURCES = test/test-mpi.cc
70

71 72

test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
73
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
74 75 76

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
77
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver ${SERVER_LIBS} ${GROUP_LIBS}
78 79 80 81

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

83

84