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

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

12 13 14 15
lib_LTLIBRARIES = lib/libkvclient.la \
                  lib/libkvserver.la \
                  lib/libkvgroupclient.la \
                  lib/libkvgroupserver.la
16

17
lib_libkvclient_la_SOURCES = src/kv-client.c
18

19 20
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
lib_libkvgroupclient_la_CPPFLAGS = ${CPPFLAGS}
21

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

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

29

30 31 32
include_HEADERS = src/sds-keyval.h \
		  src/sds-keyval-group.h

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

39 40 41

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

43 44

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

Rob Latham's avatar
Rob Latham committed
50

51
TESTS = test/test-client \
52 53
        test/test-server \
	test/bench-client \
54 55
	test/test-mpi \
	test/test-mpi-group
56

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

62
test_test_server_SOURCES = test/test-server.cc
63
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
64
test_test_server_DEPENDENCIES = lib/libkvserver.la
65
test_test_server_LDFLAGS = -Llib -lkvserver -lssg -lboost_filesystem -lboost_system
66 67

test_test_mpi_SOURCES = test/test-mpi.cc
68

69
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
70 71 72


test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
73
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver -lssg -lboost_filesystem -lboost_system
74 75 76 77 78

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
test_test_mpi_group_LDFLAGS = -Llib -lkvgroupserver -lkvgroupclient -lkvclient -lkvserver -lssg -lch-placement -lleveldb -ldb_cxx -lboost_filesystem -lboost_system
79 80 81 82

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

84

85