forked from farsightsec/mtbl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
187 lines (156 loc) · 3.9 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
AUTOMAKE_OPTIONS = parallel-tests
check_PROGRAMS =
bin_PROGRAMS =
TESTS =
EXTRA_DIST = COPYRIGHT LICENSE README.md
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I${top_srcdir}/mtbl
AM_CFLAGS = ${my_CFLAGS}
AM_LDFLAGS =
#
##
### library
##
#
LIBMTBL_VERSION_INFO=0:0:0
include_HEADERS = mtbl/mtbl.h
lib_LTLIBRARIES = mtbl/libmtbl.la
mtbl_libmtbl_la_SOURCES = \
libmy/crc32c.c libmy/crc32c.h libmy/crc32c-slicing.c libmy/crc32c-sse42.c \
libmy/heap.c libmy/heap.h \
libmy/my_alloc.h \
libmy/my_fileset.c libmy/my_fileset.h \
libmy/ubuf.h \
libmy/vector.h \
mtbl/block.c \
mtbl/block_builder.c \
mtbl/bytes.h \
mtbl/crc32c_wrap.c \
mtbl/fileset.c \
mtbl/fixed.c \
mtbl/iter.c \
mtbl/merger.c \
mtbl/mtbl.h \
mtbl/mtbl-private.h \
mtbl/reader.c \
mtbl/sorter.c \
mtbl/source.c \
mtbl/trailer.c \
mtbl/varint.c \
mtbl/writer.c
mtbl_libmtbl_la_LIBADD = -lsnappy -lz
mtbl_libmtbl_la_LDFLAGS = $(AM_LDFLAGS) \
-version-info $(LIBMTBL_VERSION_INFO)
if HAVE_LD_VERSION_SCRIPT
mtbl_libmtbl_la_LDFLAGS += \
-Wl,--version-script=$(top_srcdir)/mtbl/libmtbl.sym
else
mtbl_libmtbl_la_LDFLAGS += \
-export-symbols-regex "^(mtbl_[a-z].*)"
endif
EXTRA_DIST += mtbl/libmtbl.sym
pkgconfig_DATA = mtbl/libmtbl.pc
EXTRA_DIST += mtbl/libmtbl.pc.in
CLEANFILES += mtbl/libmtbl.pc
#
##
### programs
##
#
bin_PROGRAMS += src/mtbl_dump
src_mtbl_dump_SOURCES = src/mtbl_dump.c libmy/print_string.h
src_mtbl_dump_LDADD = mtbl/libmtbl.la
bin_PROGRAMS += src/mtbl_info
src_mtbl_info_SOURCES = src/mtbl_info.c
src_mtbl_info_LDADD = mtbl/libmtbl.la
bin_PROGRAMS += src/mtbl_merge
src_mtbl_merge_SOURCES = src/mtbl_merge.c libmy/getenv_int.h
src_mtbl_merge_LDADD = mtbl/libmtbl.la
#
##
### tests
##
#
AM_TESTS_ENVIRONMENT = top_builddir='$(top_builddir)'; top_srcdir='$(top_srcdir)'; export top_builddir top_srcdir;
TESTS_ENVIRONMENT = $(AM_TESTS_ENVIRONMENT)
TESTS += t/test-block_builder
check_PROGRAMS += t/test-block_builder
t_test_block_builder_SOURCES = t/test-block_builder.c
t_test_block_builder_LDADD = mtbl/libmtbl.la
TESTS += t/test-crc32c
check_PROGRAMS += t/test-crc32c
t_test_crc32c_SOURCES = t/test-crc32c.c
t_test_crc32c_LDADD = mtbl/libmtbl.la
TESTS += t/test-fixed
check_PROGRAMS += t/test-fixed
t_test_fixed_SOURCES = t/test-fixed.c
t_test_fixed_LDADD = mtbl/libmtbl.la
TESTS += t/test-trailer
check_PROGRAMS += t/test-trailer
t_test_trailer_SOURCES = t/test-trailer.c
t_test_trailer_LDADD = mtbl/libmtbl.la
TESTS += t/test-varint
check_PROGRAMS += t/test-varint
t_test_varint_SOURCES = t/test-varint.c
t_test_varint_LDADD = mtbl/libmtbl.la
TESTS += t/test-vector
check_PROGRAMS += t/test-vector
t_test_vector_SOURCES = t/test-vector.c
t_test_vector_LDADD = mtbl/libmtbl.la
TESTS += t/test-deb716628.sh
EXTRA_DIST += t/test-deb716628.sh
EXTRA_DIST += t/test-deb716628.data
t/test-deb716628.sh: src/mtbl_dump
TESTS += t/test-gh1.sh
EXTRA_DIST += t/test-gh1.sh
EXTRA_DIST += t/test-gh1-snappy.data
EXTRA_DIST += t/test-gh1-zlib.data
t/test-gh1.sh: src/mtbl_dump
#
##
### documentation
##
#
if BUILD_MAN
SUFFIXES = .1.txt .3.txt .7.txt .1 .3 .7
ASCIIDOC_PROCESS = $(AM_V_GEN) $(ASCIIDOC) -f manpage --no-xmllint --asciidoc-opt="-f man/asciidoc.conf" $<
.1.txt.1:
$(ASCIIDOC_PROCESS)
.3.txt.3:
$(ASCIIDOC_PROCESS)
.7.txt.7:
$(ASCIIDOC_PROCESS)
endif
dist_man_MANS = \
man/mtbl_dump.1 \
man/mtbl_info.1 \
man/mtbl_merge.1 \
man/mtbl_iter.3 \
man/mtbl_source.3 \
man/mtbl_reader.3 \
man/mtbl_writer.3 \
man/mtbl_merger.3 \
man/mtbl_sorter.3 \
man/mtbl_fileset.3 \
man/mtbl_crc32c.3 \
man/mtbl_fixed.3 \
man/mtbl_varint.3 \
man/mtbl.7
EXTRA_DIST += \
man/mtbl_dump.1.txt \
man/mtbl_info.1.txt \
man/mtbl_merge.1.txt \
man/mtbl_iter.3.txt \
man/mtbl_source.3.txt \
man/mtbl_reader.3.txt \
man/mtbl_writer.3.txt \
man/mtbl_merger.3.txt \
man/mtbl_sorter.3.txt \
man/mtbl_fileset.3.txt \
man/mtbl_crc32c.3.txt \
man/mtbl_fixed.3.txt \
man/mtbl_varint.3.txt \
man/mtbl.7.txt