Makefile.am 3.54 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

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

lib_libkvserver_la_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
40 41 42 43 44
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}
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 55 56 57 58 59

check_PROGRAMS = test/bench-client \
		 test/test-client \
		 test/test-server \
		 test/test-mpi \
		 test/test-mpi-group

Rob Latham's avatar
Rob Latham committed
60 61 62
test_bench_client_SOURCES = test/bench-client.cc
test_bench_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
test_bench_client_LDADD = ${LIBS} -lkvclient
63 64

TESTS = test/test-client \
65 66
        test/test-server \
	test/bench-client \
67 68
	test/test-mpi \
	test/test-mpi-group
69

70 71
test_test_client_SOURCES = test/test-client.cc
test_test_client_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
72
test_test_client_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
73 74
test_test_client_DEPENDENCIES = lib/libkvclient.la
test_test_client_LDFLAGS = -Llib -lkvclient
75

76 77
test_test_server_SOURCES = test/test-server.cc
test_test_server_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
78
test_test_server_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
79
test_test_server_DEPENDENCIES = lib/libkvserver.la
80
test_test_server_LDFLAGS = -Llib -lkvserver -lssg -lboost_filesystem -lboost_system
81 82

test_test_mpi_SOURCES = test/test-mpi.cc
83 84

test_test_mpi_CXXFLAGS = -pthread -std=c++11 -g -Wall -mcx16 -Wno-invalid-offsetof
85
test_test_mpi_CPPFLAGS = ${CPPFLAGS} -I${srcdir}/src
86 87 88


test_test_mpi_DEPENDENCIES = lib/libkvserver.la lib/libkvclient.la
89
test_test_mpi_LDFLAGS = -Llib -lkvclient -lkvserver -lssg -lboost_filesystem -lboost_system
90 91 92 93 94 95

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
96 97 98 99

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

101

102