Makefile.am 5.56 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 11

CLEANFILES = *.gcno *.gcda
CLEANFILES += rrclass.h rrtype.h rrparamregistry.cc rdataclass.h rdataclass.cc

12 13 14 15 16 17
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:
18 19
EXTRA_DIST += rdata/any_255/tsig_250.cc
EXTRA_DIST += rdata/any_255/tsig_250.h
20 21
EXTRA_DIST += rdata/ch_3/a_1.cc
EXTRA_DIST += rdata/ch_3/a_1.h
22 23
EXTRA_DIST += rdata/generic/cname_5.cc
EXTRA_DIST += rdata/generic/cname_5.h
24 25
EXTRA_DIST += rdata/generic/detail/nsec_bitmap.cc
EXTRA_DIST += rdata/generic/detail/nsec_bitmap.h
26
EXTRA_DIST += rdata/generic/detail/txt_like.h
Dima Volodin's avatar
Dima Volodin committed
27
EXTRA_DIST += rdata/generic/detail/ds_like.h
28
EXTRA_DIST += rdata/generic/dlv_32769.cc
Dima Volodin's avatar
Dima Volodin committed
29
EXTRA_DIST += rdata/generic/dlv_32769.h
30 31 32 33 34 35
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
36 37
EXTRA_DIST += rdata/generic/hinfo_13.cc
EXTRA_DIST += rdata/generic/hinfo_13.h
38
EXTRA_DIST += rdata/generic/mx_15.cc
39
EXTRA_DIST += rdata/generic/mx_15.h
40 41
EXTRA_DIST += rdata/generic/naptr_35.cc
EXTRA_DIST += rdata/generic/naptr_35.h
42 43
EXTRA_DIST += rdata/generic/ns_2.cc
EXTRA_DIST += rdata/generic/ns_2.h
44 45
EXTRA_DIST += rdata/generic/nsec3_50.cc
EXTRA_DIST += rdata/generic/nsec3_50.h
46 47 48 49 50 51
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
52 53
EXTRA_DIST += rdata/generic/ptr_12.cc
EXTRA_DIST += rdata/generic/ptr_12.h
54 55
EXTRA_DIST += rdata/generic/rp_17.cc
EXTRA_DIST += rdata/generic/rp_17.h
56 57 58 59
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
60
EXTRA_DIST += rdata/generic/spf_99.cc
61
EXTRA_DIST += rdata/generic/spf_99.h
62 63
EXTRA_DIST += rdata/generic/txt_16.cc
EXTRA_DIST += rdata/generic/txt_16.h
chenzhengzhang's avatar
chenzhengzhang committed
64 65
EXTRA_DIST += rdata/generic/minfo_14.cc
EXTRA_DIST += rdata/generic/minfo_14.h
66 67
EXTRA_DIST += rdata/generic/afsdb_18.cc
EXTRA_DIST += rdata/generic/afsdb_18.h
68 69
EXTRA_DIST += rdata/hs_4/a_1.cc
EXTRA_DIST += rdata/hs_4/a_1.h
70 71 72 73
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
74 75
EXTRA_DIST += rdata/in_1/dhcid_49.cc
EXTRA_DIST += rdata/in_1/dhcid_49.h
Jelte Jansen's avatar
Jelte Jansen committed
76 77
EXTRA_DIST += rdata/in_1/srv_33.cc
EXTRA_DIST += rdata/in_1/srv_33.h
78 79 80
#EXTRA_DIST += rdata/template.cc
#EXTRA_DIST += rdata/template.h

Jeremy C. Reed's avatar
Jeremy C. Reed committed
81 82
# auto-generate by gen-rdatacode.py:
BUILT_SOURCES = rrclass.h rrtype.h rrparamregistry.cc
83
BUILT_SOURCES += rdataclass.h rdataclass.cc
Jeremy C. Reed's avatar
Jeremy C. Reed committed
84

JINMEI Tatuya's avatar
JINMEI Tatuya committed
85
lib_LTLIBRARIES = libdns++.la
86

87 88
libdns___la_LDFLAGS = -no-undefined -version-info 1:0:1

89
libdns___la_SOURCES =
90
libdns___la_SOURCES += edns.h edns.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
91
libdns___la_SOURCES += exceptions.h exceptions.cc
92
libdns___la_SOURCES += masterload.h masterload.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
93 94 95
libdns___la_SOURCES += message.h message.cc
libdns___la_SOURCES += messagerenderer.h messagerenderer.cc
libdns___la_SOURCES += name.h name.cc
96
libdns___la_SOURCES += nsec3hash.h nsec3hash.cc
97
libdns___la_SOURCES += opcode.h opcode.cc
98
libdns___la_SOURCES += rcode.h rcode.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
99
libdns___la_SOURCES += rdata.h rdata.cc
100
libdns___la_SOURCES += rdatafields.h rdatafields.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
101 102 103 104 105 106 107
libdns___la_SOURCES += rrclass.cc
libdns___la_SOURCES += rrparamregistry.h
libdns___la_SOURCES += rrset.h rrset.cc
libdns___la_SOURCES += rrsetlist.h rrsetlist.cc
libdns___la_SOURCES += rrttl.h rrttl.cc
libdns___la_SOURCES += rrtype.cc
libdns___la_SOURCES += question.h question.cc
108
libdns___la_SOURCES += serial.h serial.cc
109 110
libdns___la_SOURCES += tsig.h tsig.cc
libdns___la_SOURCES += tsigerror.h tsigerror.cc
111
libdns___la_SOURCES += tsigkey.h tsigkey.cc
112
libdns___la_SOURCES += tsigrecord.h tsigrecord.cc
113
libdns___la_SOURCES += character_string.h character_string.cc
114 115
libdns___la_SOURCES += rdata/generic/detail/nsec_bitmap.h
libdns___la_SOURCES += rdata/generic/detail/nsec_bitmap.cc
116
libdns___la_SOURCES += rdata/generic/detail/txt_like.h
Dima Volodin's avatar
Dima Volodin committed
117
libdns___la_SOURCES += rdata/generic/detail/ds_like.h
118

119
libdns___la_CPPFLAGS = $(AM_CPPFLAGS)
120 121 122 123 124
# 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.
libdns___la_LIBADD = $(top_builddir)/src/lib/cryptolink/libcryptolink.la
libdns___la_LIBADD += $(top_builddir)/src/lib/util/libutil.la
125

126 127
nodist_libdns___include_HEADERS = rdataclass.h rrclass.h rrtype.h
nodist_libdns___la_SOURCES = rdataclass.cc rrparamregistry.cc
128

Jeremy C. Reed's avatar
Jeremy C. Reed committed
129 130 131 132 133
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
	./gen-rdatacode.py
134

135 136
libdns___includedir = $(includedir)/dns
libdns___include_HEADERS = \
137
	edns.h \
138 139 140 141 142
	exceptions.h \
	message.h \
	messagerenderer.h \
	name.h \
	question.h \
143
	rcode.h \
144 145 146 147 148
	rdata.h \
	rrparamregistry.h \
	rrset.h \
	rrsetlist.h \
	rrttl.h \
149
	tsigkey.h
150
# Purposely not installing these headers:
151
# util/*.h: used only internally, and not actually DNS specific
152
# rdata/*/detail/*.h: these are internal use only
153 154
# rrclass-placeholder.h
# rrtype-placeholder.h