1262706Serwin# Copyright (C) 2004, 2006-2009, 2012-2014  Internet Systems Consortium, Inc. ("ISC")
2135446Strhodes# Copyright (C) 2000-2002  Internet Software Consortium.
3135446Strhodes#
4186462Sdougb# 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.36 2009/12/05 23:31:40 each Exp $
17135446Strhodes
18135446Strhodessrcdir =	@srcdir@
19135446StrhodesVPATH =		@srcdir@
20135446Strhodestop_srcdir =	@top_srcdir@
21135446Strhodes
22135446Strhodes@BIND9_VERSION@
23135446Strhodes
24135446Strhodes@BIND9_MAKE_INCLUDES@
25135446Strhodes
26254897SerwinREADLINE_LIB = @READLINE_LIB@
27254897Serwin
28262706SerwinDST_GSSAPI_INC = @DST_GSSAPI_INC@
29262706Serwin
30135446StrhodesCINCLUDES =	${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
31262706Serwin		${ISC_INCLUDES} ${ISCCFG_INCLUDES} ${DST_GSSAPI_INC}
32135446Strhodes
33193149SdougbCDEFINES =	@USE_GSSAPI@
34135446StrhodesCWARNINGS =
35135446Strhodes
36135446StrhodesLWRESLIBS =	../../lib/lwres/liblwres.@A@
37135446StrhodesDNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
38135446StrhodesBIND9LIBS =	../../lib/bind9/libbind9.@A@
39135446StrhodesISCLIBS =	../../lib/isc/libisc.@A@
40224092SdougbISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@
41135446StrhodesISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
42135446Strhodes
43135446StrhodesLWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
44135446StrhodesDNSDEPLIBS =	../../lib/dns/libdns.@A@
45135446StrhodesBIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
46135446StrhodesISCDEPLIBS =	../../lib/isc/libisc.@A@
47135446StrhodesISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
48135446Strhodes
49135446StrhodesDEPLIBS =	${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS}
50135446Strhodes
51224092SdougbLIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
52135446Strhodes
53224092SdougbNOSYMLIBS =	${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@
54224092Sdougb
55135446StrhodesSUBDIRS =
56135446Strhodes
57135446StrhodesTARGETS =	nsupdate@EXEEXT@
58135446Strhodes
59135446StrhodesOBJS =		nsupdate.@O@
60135446Strhodes
61135446StrhodesUOBJS =
62135446Strhodes
63135446StrhodesSRCS =		nsupdate.c
64135446Strhodes
65186462SdougbMANPAGES =	nsupdate.1
66135446Strhodes
67135446StrhodesHTMLPAGES =	nsupdate.html
68135446Strhodes
69135446StrhodesMANOBJS =	${MANPAGES} ${HTMLPAGES}
70135446Strhodes
71135446Strhodes@BIND9_MAKE_RULES@
72135446Strhodes
73224092Sdougbnsupdate.@O@: nsupdate.c
74224092Sdougb	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
75224092Sdougb		-DSESSION_KEYFILE=\"${localstatedir}/run/named/session.key\" \
76224092Sdougb		-c ${srcdir}/nsupdate.c
77224092Sdougb
78135446Strhodesnsupdate@EXEEXT@: nsupdate.@O@ ${UOBJS} ${DEPLIBS}
79254897Serwin	export BASEOBJS="nsupdate.@O@ ${READLINE_LIB} ${UOBJS}"; \
80224092Sdougb	${FINALBUILDCMD}
81135446Strhodes
82135446Strhodesdoc man:: ${MANOBJS}
83135446Strhodes
84135446Strhodesdocclean manclean maintainer-clean::
85135446Strhodes	rm -f ${MANOBJS}
86135446Strhodes
87135446Strhodesclean distclean::
88135446Strhodes	rm -f ${TARGETS}
89135446Strhodes
90135446Strhodesinstalldirs:
91135446Strhodes	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
92186462Sdougb	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
93135446Strhodes
94135446Strhodesinstall:: nsupdate@EXEEXT@ installdirs
95135446Strhodes	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsupdate@EXEEXT@ ${DESTDIR}${bindir}
96186462Sdougb	${INSTALL_DATA} ${srcdir}/nsupdate.1 ${DESTDIR}${mandir}/man1
97