Makefile.in 2.81 KB
Newer Older
Mark Andrews's avatar
Mark Andrews committed
1
# Copyright (C) 2004, 2006-2009, 2012-2014  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright (C) 2000-2002  Internet Software Consortium.
#
# 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.
Mark Andrews's avatar
Mark Andrews committed
15

16
# $Id: Makefile.in,v 1.36 2009/12/05 23:31:40 each Exp $
David Lawrence's avatar
David Lawrence committed
17

Michael Sawyer's avatar
Michael Sawyer committed
18 19 20 21 22 23
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_VERSION@

24
@BIND9_MAKE_INCLUDES@
Michael Sawyer's avatar
Michael Sawyer committed
25

26 27
READLINE_LIB = @READLINE_LIB@

Mark Andrews's avatar
Mark Andrews committed
28 29
DST_GSSAPI_INC = @DST_GSSAPI_INC@

30
CINCLUDES =	${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
31
		${ISC_INCLUDES} ${ISCCFG_INCLUDES} ${DST_GSSAPI_INC}
Michael Sawyer's avatar
Michael Sawyer committed
32

33
CDEFINES =	@USE_GSSAPI@
Michael Sawyer's avatar
Michael Sawyer committed
34 35
CWARNINGS =

36
LWRESLIBS =	../../lib/lwres/liblwres.@A@
37
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
38
BIND9LIBS =	../../lib/bind9/libbind9.@A@
Michael Sawyer's avatar
Michael Sawyer committed
39
ISCLIBS =	../../lib/isc/libisc.@A@
40
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@
41
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
Michael Sawyer's avatar
Michael Sawyer committed
42

43
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
Michael Sawyer's avatar
Michael Sawyer committed
44
DNSDEPLIBS =	../../lib/dns/libdns.@A@
45
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
Michael Sawyer's avatar
Michael Sawyer committed
46
ISCDEPLIBS =	../../lib/isc/libisc.@A@
47
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
Michael Sawyer's avatar
Michael Sawyer committed
48

49
DEPLIBS =	${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS}
Michael Sawyer's avatar
Michael Sawyer committed
50

51
LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
Michael Sawyer's avatar
Michael Sawyer committed
52

53
NOSYMLIBS =	${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@
54

55
SUBDIRS =
Michael Sawyer's avatar
Michael Sawyer committed
56

Mark Andrews's avatar
Mark Andrews committed
57
TARGETS =	nsupdate@EXEEXT@
Michael Sawyer's avatar
Michael Sawyer committed
58 59 60

OBJS =		nsupdate.@O@

61
UOBJS =
Michael Sawyer's avatar
Michael Sawyer committed
62 63 64

SRCS =		nsupdate.c

65
MANPAGES =	nsupdate.1
66

67 68 69 70
HTMLPAGES =	nsupdate.html

MANOBJS =	${MANPAGES} ${HTMLPAGES}

Michael Sawyer's avatar
Michael Sawyer committed
71 72
@BIND9_MAKE_RULES@

73 74
nsupdate.@O@: nsupdate.c
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
75
		-DSESSION_KEYFILE=\"${localstatedir}/run/named/session.key\" \
76 77
		-c ${srcdir}/nsupdate.c

Mark Andrews's avatar
Mark Andrews committed
78
nsupdate@EXEEXT@: nsupdate.@O@ ${UOBJS} ${DEPLIBS}
79
	export BASEOBJS="nsupdate.@O@ ${READLINE_LIB} ${UOBJS}"; \
80
	${FINALBUILDCMD}
Michael Sawyer's avatar
Michael Sawyer committed
81

82 83 84 85 86
doc man:: ${MANOBJS}

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

Michael Sawyer's avatar
Michael Sawyer committed
87 88 89 90
clean distclean::
	rm -f ${TARGETS}

installdirs:
91
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
92
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
Michael Sawyer's avatar
Michael Sawyer committed
93

Mark Andrews's avatar
Mark Andrews committed
94
install:: nsupdate@EXEEXT@ installdirs
95
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsupdate@EXEEXT@ ${DESTDIR}${bindir}
96
	${INSTALL_DATA} ${srcdir}/nsupdate.1 ${DESTDIR}${mandir}/man1