# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# 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 https://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@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	${DNS_INCLUDES} ${ISC_INCLUDES} \
		${OPENSSL_CFLAGS}

CDEFINES =
CWARNINGS =

DNSLIBS =	../../../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
ISCLIBS =	../../../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@

DNSDEPLIBS =	../../../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../../../lib/isc/libisc.@A@

DEPLIBS =	${DNSDEPLIBS} ${ISCDEPLIBS}

LIBS =		${DNSLIBS} ${ISCLIBS} @LIBS@

TARGETS =	keycreate@EXEEXT@ keydelete@EXEEXT@

CREATEOBJS =	keycreate.@O@
DELETEOBJS =	keydelete.@O@

SRCS =		keycreate.c keydelete.c

@BIND9_MAKE_RULES@

all: keycreate@EXEEXT@ keydelete@EXEEXT@

keycreate@EXEEXT@: ${CREATEOBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${CREATEOBJS} ${LIBS}

keydelete@EXEEXT@: ${DELETEOBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${DELETEOBJS} ${LIBS}

clean distclean::
	rm -f ${TARGETS}

