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

3 4 5
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = maint/sds-keyval.pc

6 7 8
bin_PROGRAMS = test/bench-client \
	       test/test-client \
	       test/test-server
9
test_bench_client_SOURCES = test/bench-client.cc
10
test_bench_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
11
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
12 13
test_bench_client_DEPENDENCIES = lib/libkvclient.la
test_bench_client_LDFLAGS = -Llib -lkvclient
14

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

20
lib_libkvclient_la_SOURCES = src/kv-client.c
21

22 23 24
lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
lib_libkvgroupclient_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
lib_libkvgroupclient_la_CPPFLAGS = ${CPPFLAGS}
25

26
lib_libkvserver_la_SOURCES = src/kv-server.cc \
27
			 src/datastore.cc \
28
			 src/BwTree/src/bwtree.cpp
29

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

33 34 35 36
noinst_HEADERS = src/BwTree/src/bwtree.h \
		 src/BwTree/src/atomic_stack.h\
		 src/BwTree/src/bloom_filter.h \
		 src/BwTree/src/sorted_small_set.h
37 38 39 40 41
lib_libkvserver_la_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src/BwTree/src

lib_libkvgroupserver_la_SOURCES = src/kvgroup-server.cc
lib_libkvgroupserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
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 50 51 52

test_bench_client_SOURCES = test/bench-client.cc
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_bench_client_LDADD = ${LIBS} -lkvclient
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 61
test_test_client_SOURCES = test/test-client.cc
test_test_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
62
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
63 64
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
65

66 67
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
68
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
69
test_test_server_DEPENDENCIES = lib/libkvserver.la
70
test_test_server_LDFLAGS = -Llib -lkvserver -lssg -lboost_filesystem -lboost_system
71 72

test_test_mpi_SOURCES = test/test-mpi.cc
73 74

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
75
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
76 77 78


test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
79
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver -lssg -lboost_filesystem -lboost_system
80 81 82 83 84 85

test_test_mpi_group_SOURCES = test/test-mpi-group.cc
test_test_mpi_group_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
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
86 87 88 89

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

91

92