# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

VERSION=@BIND9_VERSION@

#
# Only list headers that are to be installed and are not
# machine generated.  The latter are handled specially in the
# install target below.
#
HEADERS =	aes.h app.h assertions.h astack.h atomic.h backtrace.h \
		base32.h base64.h bind9.h buffer.h bufferlist.h \
		commandline.h counter.h crc64.h deprecated.h \
		endian.h errno.h error.h event.h eventclass.h \
		file.h formatcheck.h fsaccess.h fuzz.h \
		hash.h heap.h hex.h hmac.h hp.h ht.h httpd.h \
		interfaceiter.h iterated_hash.h \
		lang.h lex.h lfsr.h lib.h likely.h list.h log.h \
		magic.h md.h mem.h meminfo.h mutexblock.h \
		netaddr.h netscope.h nonce.h os.h parseint.h \
		pool.h portset.h print.h queue.h quota.h \
		radix.h random.h ratelimiter.h refcount.h regex.h \
		region.h resource.h result.h resultclass.h rwlock.h \
		safe.h serial.h siphash.h sockaddr.h socket.h \
		stats.h stdio.h strerr.h string.h symtab.h \
		task.h taskpool.h timer.h tm.h types.h util.h version.h

SUBDIRS =
TARGETS =

@BIND9_MAKE_RULES@

installdirs:
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}/isc

install:: installdirs
	for i in ${HEADERS}; do \
		${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isc || exit 1; \
	done
	${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/isc

uninstall::
	rm -f ${DESTDIR}${includedir}/isc/platform.h
	for i in ${HEADERS}; do \
		rm -f ${DESTDIR}${includedir}/isc/$$i || exit 1; \
	done

distclean::
	rm -f platform.h
