forked from farsightsec/dnstable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
141 lines (117 loc) · 3.1 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
EXTRA_DIST = COPYRIGHT LICENSE README.md
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I${top_srcdir}/dnstable
AM_CFLAGS = \
${my_CFLAGS} \
$(libmtbl_CFLAGS) \
$(libnmsg_CFLAGS) \
$(libwdns_CFLAGS) \
$(libyajl_CFLAGS)
AM_LDFLAGS =
LIBDNSTABLE_CURRENT=0
LIBDNSTABLE_REVISION=0
LIBDNSTABLE_AGE=0
include_HEADERS = dnstable/dnstable.h
lib_LTLIBRARIES = dnstable/libdnstable.la
dnstable_libdnstable_la_SOURCES = \
dnstable/dnstable.h \
dnstable/dnstable-private.h \
dnstable/entry.c \
dnstable/iter.c \
dnstable/merge.c \
dnstable/query.c \
dnstable/reader.c \
dnstable/triplet.c \
libmy/ip_arith.h \
libmy/hex_decode.h \
libmy/my_alloc.h \
libmy/my_time.h \
libmy/print_string.h \
libmy/vector.h \
libmy/ubuf.h
dnstable_libdnstable_la_LIBADD = \
$(libmtbl_LIBS) \
$(libwdns_LIBS) \
$(libyajl_LIBS)
dnstable_libdnstable_la_LDFLAGS = $(AM_LDFLAGS) \
-version-info $(LIBDNSTABLE_CURRENT):$(LIBDNSTABLE_REVISION):$(LIBDNSTABLE_AGE)
if HAVE_LD_VERSION_SCRIPT
dnstable_libdnstable_la_LDFLAGS += \
-Wl,--version-script=$(top_srcdir)/dnstable/libdnstable.sym
else
dnstable_libdnstable_la_LDFLAGS += \
-export-symbols-regex "^(dnstable_[a-z].*)"
endif
EXTRA_DIST += dnstable/libdnstable.sym
install-exec-hook: src/dnstable_merge
install -m 0755 ${top_srcdir}/src/dnstable_merge $(DESTDIR)$(bindir)/dnstable_merge
uninstall-hook:
rm -f $(DESTDIR)$(bindir)/dnstable_merge
pkgconfig_DATA = dnstable/libdnstable.pc
EXTRA_DIST += dnstable/libdnstable.pc.in
CLEANFILES += dnstable/libdnstable.pc
EXTRA_DIST += src/dnstable_merge
bin_PROGRAMS = src/dnstable_convert
src_dnstable_convert_SOURCES = src/dnstable_convert.c
src_dnstable_convert_LDADD = \
dnstable/libdnstable.la \
$(libmtbl_LIBS) \
$(libnmsg_LIBS) \
$(libwdns_LIBS)
bin_PROGRAMS += src/dnstable_dump
src_dnstable_dump_SOURCES = \
libmy/argv.c \
libmy/argv.h \
libmy/argv_loc.h \
src/dnstable_dump.c
src_dnstable_dump_LDADD = \
dnstable/libdnstable.la \
$(libmtbl_LIBS) \
$(libwdns_LIBS)
bin_PROGRAMS += src/dnstable_lookup
src_dnstable_lookup_SOURCES = src/dnstable_lookup.c
src_dnstable_lookup_LDADD = \
dnstable/libdnstable.la \
$(libmtbl_LIBS) \
$(libwdns_LIBS)
TESTS =
check_PROGRAMS =
if BUILD_MAN
SUFFIXES = .1.txt .3.txt .5.txt .7.txt .1 .3 .5 .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)
.5.txt.5:
$(ASCIIDOC_PROCESS)
.7.txt.7:
$(ASCIIDOC_PROCESS)
dist_man_MANS = \
man/dnstable-encoding.5 \
man/dnstable_convert.1 \
man/dnstable_dump.1 \
man/dnstable_lookup.1 \
man/dnstable_merge.1 \
man/dnstable_entry.3 \
man/dnstable_iter.3 \
man/dnstable_query.3 \
man/dnstable_reader.3 \
man/dnstable_merge_func.3 \
man/dnstable.7
endif
EXTRA_DIST += \
man/dnstable-encoding.5.txt \
man/dnstable_convert.1.txt \
man/dnstable_dump.1.txt \
man/dnstable_lookup.1.txt \
man/dnstable_merge.1.txt \
man/dnstable_entry.3.txt \
man/dnstable_iter.3.txt \
man/dnstable_query.3.txt \
man/dnstable_reader.3.txt \
man/dnstable_merge_func.3.txt \
man/dnstable.7.txt