Makefile.am 2.17 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 38
noinst_HEADERS = src/datastore.h \
		 src/BwTree/src/bwtree.h \
39 40 41
		 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
42

43 44

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
45

46 47

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

Rob Latham's avatar
Rob Latham committed
53

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

60
test_test_client_SOURCES = test/test-client.cc
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_DEPENDENCIES = lib/libkvserver.la
66
test_test_server_LDFLAGS = -Llib -lkvserver ${SERVER_LIBS}
67 68

test_test_mpi_SOURCES = test/test-mpi.cc
69

70 71

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

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

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

82

83