# Copyright (C) 2009  Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

# $Id: Makefile.in,v 1.4 2009-12-05 23:31:41 each Exp $

srcdir =	@srcdir@
top_srcdir =	@top_srcdir@
export_srcdir =	@top_srcdir@/lib/export

@BIND9_VERSION@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	-I${srcdir}/include -I../dns/include \
		-I${export_srcdir}/isc/include \
		${DNS_INCLUDES} ${ISC_INCLUDES} \
		-I${top_srcdir}/lib/irs/include

CDEFINES =
CWARNINGS =

DNSLIBS =	../dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS =	../isc/libisc.@A@
ISCCFGLIBS =	../isccfg/libisccfg.@A@
IRSLIBS =	../irs/libirs.@A@

DNSDEPLIBS =	../dns/libdns.@A@
ISCDEPLIBS =	../isc/libisc.@A@
ISCCFGDEPLIBS =	../isccfg/libisccfg.@A@
IRSDEPLIBS =	../irs/libirs.@A@

DEPLIBS =	${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS}

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

SUBDIRS =

TARGETS =	sample@EXEEXT@ sample-async@EXEEXT@ sample-gai@EXEEXT@ \
		sample-update@EXEEXT@ sample-request@EXEEXT@ nsprobe@EXEEXT@

OBJS =		sample.@O@ sample-async.@O@ sample-gai.@O@ sample-update.@O@ \
		sample-request.@O@ nsprobe.@O@

UOBJS =

SRCS =		sample.c sample-async.c sample-gai.c sample-update.c \
		sample-request.c nsprobe.c

MANPAGES =

HTMLPAGES =

MANOBJS =	${MANPAGES} ${HTMLPAGES}

@BIND9_MAKE_RULES@

sample@EXEEXT@: sample.@O@ ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	sample.@O@ ${LIBS}

sample-async@EXEEXT@: sample-async.@O@ ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	sample-async.@O@ ${LIBS}

sample-gai@EXEEXT@: sample-gai.@O@ ${IRSDEPLIBS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	sample-gai.@O@ ${IRSLIBS} ${LIBS}

sample-update@EXEEXT@: sample-update.@O@ ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	sample-update.@O@ ${LIBS}

sample-request@EXEEXT@: sample-request.@O@ ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	sample-request.@O@ ${LIBS}

nsprobe@EXEEXT@: nsprobe.@O@ ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	nsprobe.@O@ ${LIBS}

doc man:: ${MANOBJS}

docclean manclean maintainer-clean::
	rm -f ${MANOBJS}

clean distclean maintainer-clean::
	rm -f ${TARGETS}
