Makefile.in 2.43 KB
Newer Older
1
# Copyright (C) 2000-2002, 2004, 2006-2009, 2012-2017  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
#
3 4 5
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Mark Andrews's avatar
Mark Andrews committed
6

Michael Sawyer's avatar
Michael Sawyer committed
7 8 9 10
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

11
VERSION=@BIND9_VERSION@
Michael Sawyer's avatar
Michael Sawyer committed
12

13
@BIND9_MAKE_INCLUDES@
Michael Sawyer's avatar
Michael Sawyer committed
14

15 16
READLINE_LIB = @READLINE_LIB@

Mark Andrews's avatar
Mark Andrews committed
17 18
DST_GSSAPI_INC = @DST_GSSAPI_INC@

19
CINCLUDES =	${LWRES_INCLUDES} ${DNS_INCLUDES} \
20 21
		${BIND9_INCLUDES} ${ISC_INCLUDES} \
		${ISCCFG_INCLUDES} ${DST_GSSAPI_INC} @DST_OPENSSL_INC@
Michael Sawyer's avatar
Michael Sawyer committed
22

23
CDEFINES =	-DVERSION=\"${VERSION}\" @CRYPTO@ @USE_GSSAPI@
Michael Sawyer's avatar
Michael Sawyer committed
24 25
CWARNINGS =

26
LWRESLIBS =	../../lib/lwres/liblwres.@A@
27
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
28
BIND9LIBS =	../../lib/bind9/libbind9.@A@
29
ISCLIBS =	../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
30
ISCNOSYMLIBS =	../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@
31
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
Michael Sawyer's avatar
Michael Sawyer committed
32

33
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
Michael Sawyer's avatar
Michael Sawyer committed
34
DNSDEPLIBS =	../../lib/dns/libdns.@A@
35
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
Michael Sawyer's avatar
Michael Sawyer committed
36
ISCDEPLIBS =	../../lib/isc/libisc.@A@
37
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
Michael Sawyer's avatar
Michael Sawyer committed
38

39
DEPLIBS =	${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS}
Michael Sawyer's avatar
Michael Sawyer committed
40

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

43
NOSYMLIBS =	${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@
44

45
SUBDIRS =
Michael Sawyer's avatar
Michael Sawyer committed
46

Mark Andrews's avatar
Mark Andrews committed
47
TARGETS =	nsupdate@EXEEXT@
Michael Sawyer's avatar
Michael Sawyer committed
48 49 50

OBJS =		nsupdate.@O@

51
UOBJS =
Michael Sawyer's avatar
Michael Sawyer committed
52 53 54

SRCS =		nsupdate.c

55
MANPAGES =	nsupdate.1
56

57 58 59 60
HTMLPAGES =	nsupdate.html

MANOBJS =	${MANPAGES} ${HTMLPAGES}

Michael Sawyer's avatar
Michael Sawyer committed
61 62
@BIND9_MAKE_RULES@

63 64
nsupdate.@O@: nsupdate.c
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
65
		-DSESSION_KEYFILE=\"${localstatedir}/run/named/session.key\" \
66 67
		-c ${srcdir}/nsupdate.c

Mark Andrews's avatar
Mark Andrews committed
68
nsupdate@EXEEXT@: nsupdate.@O@ ${UOBJS} ${DEPLIBS}
69
	export BASEOBJS="nsupdate.@O@ ${READLINE_LIB} ${UOBJS}"; \
70
	${FINALBUILDCMD}
Michael Sawyer's avatar
Michael Sawyer committed
71

72 73 74 75 76
doc man:: ${MANOBJS}

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

Michael Sawyer's avatar
Michael Sawyer committed
77 78 79 80
clean distclean::
	rm -f ${TARGETS}

installdirs:
81
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
82
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
Michael Sawyer's avatar
Michael Sawyer committed
83

Mark Andrews's avatar
Mark Andrews committed
84
install:: nsupdate@EXEEXT@ installdirs
85
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} nsupdate@EXEEXT@ ${DESTDIR}${bindir}
86
	${INSTALL_DATA} ${srcdir}/nsupdate.1 ${DESTDIR}${mandir}/man1
Evan Hunt's avatar
Evan Hunt committed
87 88 89 90

uninstall::
	rm -f ${DESTDIR}${mandir}/man1/nsupdate.1
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/nsupdate@EXEEXT@