Makefile.am 2.47 KB
Newer Older
1 2
ACLOCAL_AMFLAGS="-Im4"

3 4
SERVER_LIBS=@SERVER_LIBS@

5 6 7
bin_PROGRAMS = test/bench-client \
	       test/test-client \
	       test/test-server
8 9
test_bench_client_SOURCES = test/bench-client.cc
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
10 11
test_bench_client_DEPENDENCIES = lib/libkvclient.la
test_bench_client_LDFLAGS = -Llib -lkvclient
Rob Latham's avatar
Rob Latham committed
12
test_bench_client_LDADD = ${LIBS} -lkvclient
13

14 15 16 17
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
                  lib/libkvgroupserver.la
18

19
lib_libkvclient_la_SOURCES = src/kv-client.c
20

21 22
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
lib_libkvgroupclient_la_CPPFLAGS = ${CPPFLAGS}
23

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

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

31

32 33 34
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

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

41 42 43

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
lib_libkvgroupserver_la_CPPFLAGS = ${CPPFLAGS}
44

45 46

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

Rob Latham's avatar
Rob Latham committed
52

53
TESTS = test/test-client \
54 55
        test/test-server \
	test/bench-client \
56 57
	test/test-mpi \
	test/test-mpi-group
58

59
test_test_client_SOURCES = test/test-client.cc
60
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
61 62
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
63

64
test_test_server_SOURCES = test/test-server.cc
65
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
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
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
72 73 74


test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
75
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver ${SERVER_LIBS}
76 77 78 79

test_test_mpi_group_SOURCES = test/test-mpi-group.cc
test_test_mpi_group_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_test_mpi_group_DEPENDENCIES = lib/libkvgroupserver.la lib/libkvgroupclient.la lib/libkvserver.la lib/libkvclient.la
80
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver ${SERVER_LIBS}
81 82 83 84

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

86

87