-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
66 lines (54 loc) · 2.28 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
noinst_LTLIBRARIES =
noinst_PROGRAMS =
TESTS =
lib_LTLIBRARIES =
libexec_PROGRAMS =
pkgconfig_DATA = ./niova.pc
# libexec installs are placed into the 'niova' parent directory
my_libexecdir = $(libexecdir)/niova
my_libexec_PROGRAMS =
my_includedir = $(includedir)/niova
my_include_HEADERS =
ACLOCAL_AMFLAGS = -I m4
## Pumice
lib_LTLIBRARIES += src/libniova_pumice.la
src_libniova_pumice_la_LDFLAGS = \
-version-info @MAJOR_VERSION@:@MINOR_VERSION@:@VERSION_SUFFIX@
src_libniova_pumice_la_LIBADD = \
$(NIOVA_RAFT_LIBS) $(NIOVA_PUMICE) $(ROCKSDB_LIBS)
src_libniova_pumice_la_SOURCES = \
src/include/pumice_db.h src/include/pumice_db_net.h src/pumice_db.c
lib_LTLIBRARIES += src/libniova_pumice_client.la
src_libniova_pumice_client_la_LDFLAGS = \
-version-info @MAJOR_VERSION@:@MINOR_VERSION@:@VERSION_SUFFIX@
src_libniova_pumice_client_la_LIBADD = \
$(NIOVA_RAFT_CLIENT_LIBS) $(NIOVA_PUMICE_CLIENT_LIBS)
src_libniova_pumice_client_la_SOURCES = \
src/include/pumice_db_net.h \
src/include/pumice_db_client.h \
src/pumice_db_client.c
my_libexec_PROGRAMS += test/pumice-reference-client
test_pumice_reference_client_SOURCES = test/pumice-reference-client.c
#test_pumice_reference_client_LIBADD = libniova_pumice_client.la
test_pumice_reference_client_LDADD = $(NIOVA_RAFT_CLIENT_LIBS) src/libniova_pumice_client.la
my_libexec_PROGRAMS += test/pumice-reference-server
test_pumice_reference_server_SOURCES = test/pumice-reference-server.c
#test_pumice_reference_server_LIBADD = libniova_pumice.la
test_pumice_reference_server_LDADD = $(ROCKSDB_LIBS) $(NIOVA_RAFT_LIBS) src/libniova_pumice.la
libniova_pumice_includedir = $(includedir)/niova/
libniova_pumice_include_HEADERS = src/include/pumice_db_net.h \
src/include/pumice_db_client.h \
src/include/pumice_db.h
autofmt:
uncrustify -c tools/uncrustify.cfg --no-backup `find . -name "*.[ch]"` | tee /dev/null
autofmt-check:
uncrustify -c tools/uncrustify.cfg -q --check `find . -name "*.[ch]"` | grep -c FAIL | grep ^0$ > /dev/null
version:
echo "Version info: major=@MAJOR_VERSION@ minor=@MINOR_VERSION@ suffix=@VERSION_SUFFIX@"
show-flags:
echo "AM_CFLAGS: ${AM_CFLAGS}"
echo "CFLAGS: ${CFLAGS}"
gen-coverage:
lcov --no-external -b . --capture --directory . \
--output-file niova-coverage.out
genhtml ./niova-coverage.out --output-directory ./niova-coverage