# 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-postinstall.in,v 1.3 2009/09/02 23:48:02 tbox Exp $

srcdir =	@srcdir@
#prefix =	@prefix@
#exec_prefix =	@exec_prefix@

CDEFINES =
CWARNINGS =

DNSLIBS =	-ldns @DNS_CRYPTO_LIBS@
ISCLIBS =	-lisc
ISCCFGLIBS =	-lisccfg
IRSLIBS =	-lirs

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

SUBDIRS =

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

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

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

@BIND9_MAKE_RULES@

# The following two may depend on BIND9_MAKE_RULES
CINCLUDES =	-I@export_includedir@
LDFLAGS =	-L@export_libdir@

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}

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

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