1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# SPDX-License-Identifier: MPL-2.0
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0.  If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12srcdir =	@srcdir@
13VPATH =		@srcdir@
14top_srcdir =	@top_srcdir@
15
16VERSION=@BIND9_VERSION@
17
18HEADERS =	acl.h adb.h badcache.h bit.h byaddr.h \
19		cache.h callbacks.h catz.h cert.h \
20		client.h clientinfo.h compress.h \
21		db.h dbiterator.h dbtable.h diff.h dispatch.h \
22		dlz.h dlz_dlopen.h dns64.h dnsrps.h dnssec.h ds.h dsdigest.h \
23		dnstap.h dyndb.h ecs.h \
24		edns.h ecdb.h events.h fixedname.h forward.h geoip.h \
25		ipkeylist.h iptable.h \
26		journal.h kasp.h keydata.h keyflags.h keymgr.h keytable.h \
27		keyvalues.h lib.h librpz.h lmdb.h lookup.h log.h \
28		master.h masterdump.h message.h \
29		name.h ncache.h nsec.h nsec3.h nta.h opcode.h order.h \
30		peer.h portlist.h private.h \
31		rbt.h rcode.h rdata.h rdataclass.h rdatalist.h \
32		rdataset.h rdatasetiter.h rdataslab.h rdatatype.h request.h \
33		resolver.h result.h rootns.h rpz.h rriterator.h rrl.h \
34		sdb.h sdlz.h secalg.h secproto.h soa.h ssu.h stats.h \
35		tcpmsg.h time.h timer.h tkey.h tsec.h tsig.h ttl.h types.h \
36		update.h validator.h version.h view.h xfrin.h \
37		zone.h zonekey.h zoneverify.h zt.h
38
39GENHEADERS =	enumclass.h enumtype.h rdatastruct.h
40
41SUBDIRS =
42TARGETS =
43
44@BIND9_MAKE_RULES@
45
46installdirs:
47	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}/dns
48
49install:: installdirs
50	for i in ${HEADERS}; do \
51		${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dns || exit 1; \
52	done
53	for i in ${GENHEADERS}; do \
54		${INSTALL_DATA} $$i ${DESTDIR}${includedir}/dns || exit 1; \
55	done
56
57uninstall::
58	for i in ${GENHEADERS}; do \
59		rm -f ${DESTDIR}${includedir}/dns/$$i || exit 1; \
60	done
61	for i in ${HEADERS}; do \
62		rm -f ${DESTDIR}${includedir}/dns/$$i || exit 1; \
63	done
64