Makefile.am 7.43 KB
Newer Older
1
SUBDIRS = . tests python benchmarks
Jeremy C. Reed's avatar
Jeremy C. Reed committed
2

3
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
5
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
6
AM_CPPFLAGS += $(BOOST_INCLUDES)
7
AM_CXXFLAGS = $(B10_CXXFLAGS)
Jeremy C. Reed's avatar
Jeremy C. Reed committed
8 9 10

CLEANFILES = *.gcno *.gcda
CLEANFILES += rrclass.h rrtype.h rrparamregistry.cc rdataclass.h rdataclass.cc
11 12 13 14
# These two are created with rrtype/class.h, so not explicitly listed in
# BUILT_SOURCES.
CLEANFILES += python/rrtype_constants_inc.cc
CLEANFILES += python/rrclass_constants_inc.cc
Jeremy C. Reed's avatar
Jeremy C. Reed committed
15

16 17 18 19 20 21
EXTRA_DIST = rrclass-placeholder.h
EXTRA_DIST += rrparamregistry-placeholder.cc
EXTRA_DIST += rrtype-placeholder.h

# TODO: double-check that this is the only way
# NOTE: when an rdata file is added, please also add to this list:
22 23
EXTRA_DIST += rdata/any_255/tsig_250.cc
EXTRA_DIST += rdata/any_255/tsig_250.h
24 25
EXTRA_DIST += rdata/ch_3/a_1.cc
EXTRA_DIST += rdata/ch_3/a_1.h
26 27
EXTRA_DIST += rdata/generic/cname_5.cc
EXTRA_DIST += rdata/generic/cname_5.h
28 29
EXTRA_DIST += rdata/generic/detail/char_string.cc
EXTRA_DIST += rdata/generic/detail/char_string.h
30
EXTRA_DIST += rdata/generic/detail/lexer_util.h
31 32
EXTRA_DIST += rdata/generic/detail/nsec_bitmap.cc
EXTRA_DIST += rdata/generic/detail/nsec_bitmap.h
33 34
EXTRA_DIST += rdata/generic/detail/nsec3param_common.cc
EXTRA_DIST += rdata/generic/detail/nsec3param_common.h
35
EXTRA_DIST += rdata/generic/detail/txt_like.h
Dima Volodin's avatar
Dima Volodin committed
36
EXTRA_DIST += rdata/generic/detail/ds_like.h
37
EXTRA_DIST += rdata/generic/dlv_32769.cc
Dima Volodin's avatar
Dima Volodin committed
38
EXTRA_DIST += rdata/generic/dlv_32769.h
39 40 41 42 43 44
EXTRA_DIST += rdata/generic/dname_39.cc
EXTRA_DIST += rdata/generic/dname_39.h
EXTRA_DIST += rdata/generic/dnskey_48.cc
EXTRA_DIST += rdata/generic/dnskey_48.h
EXTRA_DIST += rdata/generic/ds_43.cc
EXTRA_DIST += rdata/generic/ds_43.h
45 46
EXTRA_DIST += rdata/generic/hinfo_13.cc
EXTRA_DIST += rdata/generic/hinfo_13.h
47
EXTRA_DIST += rdata/generic/mx_15.cc
48
EXTRA_DIST += rdata/generic/mx_15.h
49 50
EXTRA_DIST += rdata/generic/naptr_35.cc
EXTRA_DIST += rdata/generic/naptr_35.h
51 52
EXTRA_DIST += rdata/generic/ns_2.cc
EXTRA_DIST += rdata/generic/ns_2.h
53 54
EXTRA_DIST += rdata/generic/nsec3_50.cc
EXTRA_DIST += rdata/generic/nsec3_50.h
55 56 57 58 59 60
EXTRA_DIST += rdata/generic/nsec3param_51.cc
EXTRA_DIST += rdata/generic/nsec3param_51.h
EXTRA_DIST += rdata/generic/nsec_47.cc
EXTRA_DIST += rdata/generic/nsec_47.h
EXTRA_DIST += rdata/generic/opt_41.cc
EXTRA_DIST += rdata/generic/opt_41.h
61 62
EXTRA_DIST += rdata/generic/ptr_12.cc
EXTRA_DIST += rdata/generic/ptr_12.h
63 64
EXTRA_DIST += rdata/generic/rp_17.cc
EXTRA_DIST += rdata/generic/rp_17.h
65 66 67 68
EXTRA_DIST += rdata/generic/rrsig_46.cc
EXTRA_DIST += rdata/generic/rrsig_46.h
EXTRA_DIST += rdata/generic/soa_6.cc
EXTRA_DIST += rdata/generic/soa_6.h
69
EXTRA_DIST += rdata/generic/spf_99.cc
70
EXTRA_DIST += rdata/generic/spf_99.h
71 72
EXTRA_DIST += rdata/generic/sshfp_44.cc
EXTRA_DIST += rdata/generic/sshfp_44.h
73 74
EXTRA_DIST += rdata/generic/txt_16.cc
EXTRA_DIST += rdata/generic/txt_16.h
chenzhengzhang's avatar
chenzhengzhang committed
75 76
EXTRA_DIST += rdata/generic/minfo_14.cc
EXTRA_DIST += rdata/generic/minfo_14.h
77 78
EXTRA_DIST += rdata/generic/afsdb_18.cc
EXTRA_DIST += rdata/generic/afsdb_18.h
79 80 81
EXTRA_DIST += rdata/generic/any_255.txt
EXTRA_DIST += rdata/generic/axfr_252.txt
EXTRA_DIST += rdata/generic/ixfr_251.txt
82 83
EXTRA_DIST += rdata/hs_4/a_1.cc
EXTRA_DIST += rdata/hs_4/a_1.h
84 85 86 87
EXTRA_DIST += rdata/in_1/a_1.cc
EXTRA_DIST += rdata/in_1/a_1.h
EXTRA_DIST += rdata/in_1/aaaa_28.cc
EXTRA_DIST += rdata/in_1/aaaa_28.h
88 89
EXTRA_DIST += rdata/in_1/dhcid_49.cc
EXTRA_DIST += rdata/in_1/dhcid_49.h
Jelte Jansen's avatar
Jelte Jansen committed
90 91
EXTRA_DIST += rdata/in_1/srv_33.cc
EXTRA_DIST += rdata/in_1/srv_33.h
92 93 94
#EXTRA_DIST += rdata/template.cc
#EXTRA_DIST += rdata/template.h

95 96
noinst_SCRIPTS = gen-rdatacode.py

Jeremy C. Reed's avatar
Jeremy C. Reed committed
97 98
# auto-generate by gen-rdatacode.py:
BUILT_SOURCES = rrclass.h rrtype.h rrparamregistry.cc
99
BUILT_SOURCES += rdataclass.h rdataclass.cc
Jeremy C. Reed's avatar
Jeremy C. Reed committed
100

101
lib_LTLIBRARIES = libb10-dns++.la
102

103
libb10_dns___la_LDFLAGS = -no-undefined -version-info 2:0:0
104

105
libb10_dns___la_SOURCES =
106
libb10_dns___la_SOURCES += dns_fwd.h
107 108
libb10_dns___la_SOURCES += edns.h edns.cc
libb10_dns___la_SOURCES += exceptions.h exceptions.cc
109
libb10_dns___la_SOURCES += master_lexer_inputsource.h master_lexer_inputsource.cc
110 111
libb10_dns___la_SOURCES += labelsequence.h labelsequence.cc
libb10_dns___la_SOURCES += masterload.h masterload.cc
112
libb10_dns___la_SOURCES += master_lexer.h master_lexer.cc
113
libb10_dns___la_SOURCES += master_lexer_state.h
114
libb10_dns___la_SOURCES += master_loader.h master_loader.cc
115 116 117 118 119 120 121 122 123 124 125 126 127 128
libb10_dns___la_SOURCES += message.h message.cc
libb10_dns___la_SOURCES += messagerenderer.h messagerenderer.cc
libb10_dns___la_SOURCES += name.h name.cc
libb10_dns___la_SOURCES += name_internal.h
libb10_dns___la_SOURCES += nsec3hash.h nsec3hash.cc
libb10_dns___la_SOURCES += opcode.h opcode.cc
libb10_dns___la_SOURCES += rcode.h rcode.cc
libb10_dns___la_SOURCES += rdata.h rdata.cc
libb10_dns___la_SOURCES += rdatafields.h rdatafields.cc
libb10_dns___la_SOURCES += rrclass.cc
libb10_dns___la_SOURCES += rrparamregistry.h
libb10_dns___la_SOURCES += rrset.h rrset.cc
libb10_dns___la_SOURCES += rrttl.h rrttl.cc
libb10_dns___la_SOURCES += rrtype.cc
129
libb10_dns___la_SOURCES += rrcollator.h rrcollator.cc
130 131 132 133 134 135
libb10_dns___la_SOURCES += question.h question.cc
libb10_dns___la_SOURCES += serial.h serial.cc
libb10_dns___la_SOURCES += tsig.h tsig.cc
libb10_dns___la_SOURCES += tsigerror.h tsigerror.cc
libb10_dns___la_SOURCES += tsigkey.h tsigkey.cc
libb10_dns___la_SOURCES += tsigrecord.h tsigrecord.cc
136
libb10_dns___la_SOURCES += master_loader_callbacks.h master_loader_callbacks.cc
137
libb10_dns___la_SOURCES += master_loader.h
138
libb10_dns___la_SOURCES += rrset_collection_base.h
139
libb10_dns___la_SOURCES += rrset_collection.h rrset_collection.cc
140
libb10_dns___la_SOURCES += zone_checker.h zone_checker.cc
141 142
libb10_dns___la_SOURCES += rdata/generic/detail/char_string.h
libb10_dns___la_SOURCES += rdata/generic/detail/char_string.cc
143 144 145 146 147 148
libb10_dns___la_SOURCES += rdata/generic/detail/nsec_bitmap.h
libb10_dns___la_SOURCES += rdata/generic/detail/nsec_bitmap.cc
libb10_dns___la_SOURCES += rdata/generic/detail/nsec3param_common.cc
libb10_dns___la_SOURCES += rdata/generic/detail/nsec3param_common.h
libb10_dns___la_SOURCES += rdata/generic/detail/txt_like.h
libb10_dns___la_SOURCES += rdata/generic/detail/ds_like.h
149

150
libb10_dns___la_CPPFLAGS = $(AM_CPPFLAGS)
151 152 153
# Most applications of libdns++ will only implicitly rely on libcryptolink,
# so we add the dependency here so that the applications don't have to link
# libcryptolink explicitly.
154 155
libb10_dns___la_LIBADD = $(top_builddir)/src/lib/cryptolink/libb10-cryptolink.la
libb10_dns___la_LIBADD += $(top_builddir)/src/lib/util/libb10-util.la
156

157
nodist_libdns___include_HEADERS = rdataclass.h rrclass.h rrtype.h
158
nodist_libb10_dns___la_SOURCES = rdataclass.cc rrparamregistry.cc
159

Jeremy C. Reed's avatar
Jeremy C. Reed committed
160 161 162 163
rrclass.h: rrclass-placeholder.h
rrtype.h: rrtype-placeholder.h
rrparamregistry.cc: rrparamregistry-placeholder.cc
rrclass.h rrtype.h rrparamregistry.cc rdataclass.h rdataclass.cc: Makefile
164
	$(PYTHON) ./gen-rdatacode.py
165

166
libdns___includedir = $(includedir)/$(PACKAGE_NAME)/dns
167
libdns___include_HEADERS = \
168
	edns.h \
169
	exceptions.h \
170
	dns_fwd.h \
Jelte Jansen's avatar
Jelte Jansen committed
171
	labelsequence.h \
172
	message.h \
173
	masterload.h \
174 175 176
	master_lexer.h \
	master_loader.h \
	master_loader_callbacks.h \
177 178 179
	messagerenderer.h \
	name.h \
	question.h \
180
	opcode.h \
181
	rcode.h \
182 183 184
	rdata.h \
	rrparamregistry.h \
	rrset.h \
185 186
	rrset_collection_base.h \
	rrset_collection.h \
187
	rrttl.h \
188 189
	tsigkey.h \
	zone_checker.h
190
# Purposely not installing these headers:
191
# name_internal.h: used only internally, and not actually DNS specific
192
# rdata/*/detail/*.h: these are internal use only
193 194
# rrclass-placeholder.h
# rrtype-placeholder.h