1245163Serwin# Copyright (C) 2004, 2007, 2009, 2012  Internet Systems Consortium, Inc. ("ISC")
2135446Strhodes# Copyright (C) 2001  Internet Software Consortium.
3135446Strhodes#
4193149Sdougb# Permission to use, copy, modify, and/or distribute this software for any
5135446Strhodes# purpose with or without fee is hereby granted, provided that the above
6135446Strhodes# copyright notice and this permission notice appear in all copies.
7135446Strhodes#
8135446Strhodes# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9135446Strhodes# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10135446Strhodes# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11135446Strhodes# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12135446Strhodes# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13135446Strhodes# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14135446Strhodes# PERFORMANCE OF THIS SOFTWARE.
15135446Strhodes
16234010Sdougb# $Id: Makefile.in,v 1.14 2009/12/05 23:31:40 each Exp $
17135446Strhodes
18135446Strhodessrcdir =	@srcdir@
19135446StrhodesVPATH =		@srcdir@
20135446Strhodestop_srcdir =	@top_srcdir@
21135446Strhodes
22135446Strhodes@BIND9_VERSION@
23135446Strhodes
24135446Strhodes@LIBBIND9_API@
25135446Strhodes
26135446Strhodes@BIND9_MAKE_INCLUDES@
27135446Strhodes
28135446StrhodesCINCLUDES =	-I. ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
29135446Strhodes		${ISCCFG_INCLUDES}
30135446Strhodes
31135446StrhodesCDEFINES =
32135446StrhodesCWARNINGS =
33135446Strhodes
34143731SdougbISCLIBS =	../../lib/isc/libisc.@A@
35143731SdougbISCCFGLIBS =    ../../lib/isccfg/libisccfg.@A@
36143731SdougbDNSLIBS =    ../../lib/dns/libdns.@A@
37143731Sdougb
38143731SdougbISCDEPLIBS =	../../lib/isc/libisc.@A@
39143731SdougbISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
40143731SdougbDNSDEPLIBS =    ../../lib/dns/libdns.@A@
41143731Sdougb
42135446StrhodesLIBS =		@LIBS@
43135446Strhodes
44135446StrhodesSUBDIRS =	include
45135446Strhodes
46135446Strhodes# Alphabetically
47135446StrhodesOBJS =		check.@O@ getaddresses.@O@ version.@O@
48135446Strhodes
49135446Strhodes# Alphabetically
50135446StrhodesSRCS =		check.c getaddresses.c version.c
51135446Strhodes
52135446StrhodesTARGETS = 	timestamp
53135446Strhodes
54135446Strhodes@BIND9_MAKE_RULES@
55135446Strhodes
56135446Strhodesversion.@O@: version.c
57135446Strhodes	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
58135446Strhodes		-DVERSION=\"${VERSION}\" \
59135446Strhodes		-DLIBINTERFACE=${LIBINTERFACE} \
60135446Strhodes		-DLIBREVISION=${LIBREVISION} \
61135446Strhodes		-DLIBAGE=${LIBAGE} \
62135446Strhodes		-c ${srcdir}/version.c
63135446Strhodes
64135446Strhodeslibbind9.@SA@: ${OBJS}
65135446Strhodes	${AR} ${ARFLAGS} $@ ${OBJS}
66135446Strhodes	${RANLIB} $@
67135446Strhodes
68143731Sdougblibbind9.la: ${OBJS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS} ${DNSDEPLIBS}
69135446Strhodes	${LIBTOOL_MODE_LINK} \
70135446Strhodes		${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libbind9.la -rpath ${libdir} \
71135446Strhodes		-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
72254402Serwin		${OBJS} ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ \
73254402Serwin		${LIBS}
74135446Strhodes
75135446Strhodestimestamp: libbind9.@A@
76135446Strhodes	touch timestamp
77135446Strhodes
78135446Strhodesinstalldirs:
79135446Strhodes	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
80135446Strhodes
81135446Strhodesinstall:: timestamp installdirs
82135446Strhodes	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libbind9.@A@ ${DESTDIR}${libdir}
83135446Strhodes
84135446Strhodesclean distclean::
85135446Strhodes	rm -f libbind9.@A@ timestamp
86