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

16
# $Id: Makefile.in,v 1.36 2004/07/20 07:13:33 marka Exp $
David Lawrence's avatar
David Lawrence committed
17

18 19 20 21 22 23
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_VERSION@

24
@BIND9_MAKE_INCLUDES@
25

26
CINCLUDES =	-I${srcdir}/include ${DNS_INCLUDES} ${BIND9_INCLUDES} \
Mark Andrews's avatar
Mark Andrews committed
27
		${ISC_INCLUDES} ${LWRES_INCLUDES}
28

29
CDEFINES =	-DVERSION=\"${VERSION}\"
30 31
CWARNINGS =

32
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
33
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
34
BIND9LIBS =	../../lib/bind9/libbind9.@A@
35
ISCLIBS =	../../lib/isc/libisc.@A@
Mark Andrews's avatar
Mark Andrews committed
36
LWRESLIBS =	../../lib/lwres/liblwres.@A@
37

38
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
39
DNSDEPLIBS =	../../lib/dns/libdns.@A@
40
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
41
ISCDEPLIBS =	../../lib/isc/libisc.@A@
Mark Andrews's avatar
Mark Andrews committed
42
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
43

Mark Andrews's avatar
Mark Andrews committed
44 45
DEPLIBS =	${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} ${ISCCFGDEPLIBS} \
		${LWRESDEPLIBS}
46

Mark Andrews's avatar
Mark Andrews committed
47 48
LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} ${ISCLIBS} \
		${ISCCFGLIBS} @LIBS@
49

Michael Sawyer's avatar
Michael Sawyer committed
50
SUBDIRS =
51

Mark Andrews's avatar
Mark Andrews committed
52
TARGETS =	dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
53

54
OBJS =		dig.@O@ dighost.@O@ host.@O@ nslookup.@O@
55

56
UOBJS =
57

58
SRCS =		dig.c dighost.c host.c nslookup.c
59

60 61
MANPAGES =	dig.1 host.1

62 63 64 65
HTMLPAGES =	dig.html host.html

MANOBJS =	${MANPAGES} ${HTMLPAGES}

66 67
@BIND9_MAKE_RULES@

Mark Andrews's avatar
Mark Andrews committed
68
dig@EXEEXT@: dig.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
69
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
70
	dig.@O@ dighost.@O@ ${UOBJS} ${LIBS}
71

Mark Andrews's avatar
Mark Andrews committed
72
host@EXEEXT@: host.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
73
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
74
	host.@O@ dighost.@O@ ${UOBJS} ${LIBS}
75

Mark Andrews's avatar
Mark Andrews committed
76
nslookup@EXEEXT@: nslookup.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
77
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
78
	nslookup.@O@ dighost.@O@ ${UOBJS} ${LIBS}
79

80
doc man:: ${MANOBJS}
81

82 83
docclean manclean maintainer-clean::
	rm -f ${MANOBJS}
84 85

clean distclean maintainer-clean::
86 87 88
	rm -f ${TARGETS}

installdirs:
89
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
90
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
91

Mark Andrews's avatar
Mark Andrews committed
92
install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@ installdirs
93 94 95 96 97 98
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		dig@EXEEXT@ ${DESTDIR}${bindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		host@EXEEXT@ ${DESTDIR}${bindir}
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
		nslookup@EXEEXT@ ${DESTDIR}${bindir}
99 100 101
	for m in ${MANPAGES}; do \
		${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1; \
		done