Makefile.in 4.79 KB
Newer Older
Automatic Updater's avatar
Automatic Updater committed
1
# Copyright (C) 2004-2008  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
# Copyright (C) 1998-2002  Internet Software Consortium.
3
#
Automatic Updater's avatar
Automatic Updater committed
4
# Permission to use, copy, modify, and/or distribute this software for any
Bob Halley's avatar
Bob Halley committed
5
6
# 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.101 2008/09/23 17:25:47 jinmei Exp $
David Lawrence's avatar
David Lawrence committed
17

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

Bob Halley's avatar
update    
Bob Halley committed
22
23
@BIND9_VERSION@

24
25
@BIND9_CONFIGARGS@

26
@BIND9_MAKE_INCLUDES@
27

28
29
30
#
# Add database drivers here.
#
31
32
DBDRIVER_OBJS =
DBDRIVER_SRCS =
Brian Wellington's avatar
Brian Wellington committed
33
DBDRIVER_INCLUDES =
34
DBDRIVER_LIBS =
35

36
37
38
39
40
41
42
DLZ_DRIVER_DIR =	${top_srcdir}/contrib/dlz/drivers

DLZDRIVER_OBJS =	@DLZ_DRIVER_OBJS@
DLZDRIVER_SRCS =	@DLZ_DRIVER_SRCS@
DLZDRIVER_INCLUDES =	@DLZ_DRIVER_INCLUDES@
DLZDRIVER_LIBS =	@DLZ_DRIVER_LIBS@

43
CINCLUDES =	-I${srcdir}/include -I${srcdir}/unix/include -I. \
44
		${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
45
		${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES} \
46
47
48
		${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES}

CDEFINES =      @USE_DLZ@
49
50
51

CWARNINGS =

52
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
53
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
54
ISCCCLIBS =	../../lib/isccc/libisccc.@A@
55
ISCLIBS =	../../lib/isc/libisc.@A@
56
LWRESLIBS =	../../lib/lwres/liblwres.@A@
57
BIND9LIBS =	../../lib/bind9/libbind9.@A@
58

59
DNSDEPLIBS =	../../lib/dns/libdns.@A@
60
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
61
ISCCCDEPLIBS =	../../lib/isccc/libisccc.@A@
62
ISCDEPLIBS =	../../lib/isc/libisc.@A@
63
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
64
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
65

66
DEPLIBS =	${LWRESDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS} \
67
		${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${ISCDEPLIBS}
68

69
LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
70
71
		${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} \
		${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
72

Bob Halley's avatar
Bob Halley committed
73
74
SUBDIRS =	unix

Mark Andrews's avatar
Mark Andrews committed
75
TARGETS =	named@EXEEXT@ lwresd@EXEEXT@
76

77
OBJS =		builtin.@O@ client.@O@ config.@O@ control.@O@ \
78
		controlconf.@O@ interfacemgr.@O@ \
79
		listenlist.@O@ log.@O@ logconf.@O@ main.@O@ notify.@O@ \
80
		query.@O@ server.@O@ sortlist.@O@ statschannel.@O@ \
81
82
		tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
		zoneconf.@O@ \
83
		lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
84
		lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
85
		${DLZDRIVER_OBJS} ${DBDRIVER_OBJS}
86

Bob Halley's avatar
Bob Halley committed
87
88
UOBJS =		unix/os.@O@

89
SRCS =		builtin.c client.c config.c control.c \
90
		controlconf.c interfacemgr.c \
91
		listenlist.c log.c logconf.c main.c notify.c \
92
		query.c server.c sortlist.c statschannel.c \
93
94
		tkeyconf.c tsigconf.c update.c xfrout.c \
		zoneconf.c \
95
		lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
96
		lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
97
		${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
Bob Halley's avatar
Bob Halley committed
98

99
MANPAGES =	named.8 lwresd.8 named.conf.5
100

101
HTMLPAGES =	named.html lwresd.html named.conf.html
Bob Halley's avatar
Bob Halley committed
102
103
104

MANOBJS =	${MANPAGES} ${HTMLPAGES}

105
106
@BIND9_MAKE_RULES@

107
main.@O@: main.c
108
109
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
110
		-DCONFIGARGS="\"${CONFIGARGS}\"" \
111
112
		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
		-DNS_SYSCONFDIR=\"${sysconfdir}\" -c ${srcdir}/main.c
Bob Halley's avatar
update    
Bob Halley committed
113

114
config.@O@: config.c
115
116
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
117
118
119
		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
		-c ${srcdir}/config.c

Mark Andrews's avatar
Mark Andrews committed
120
named@EXEEXT@: ${OBJS} ${UOBJS} ${DEPLIBS}
121
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
122
	${OBJS} ${UOBJS} ${LIBS}
123

Mark Andrews's avatar
Mark Andrews committed
124
125
126
lwresd@EXEEXT@: named@EXEEXT@
	rm -f lwresd@EXEEXT@
	@LN@ named@EXEEXT@ lwresd@EXEEXT@
127

128
doc man:: ${MANOBJS}
Bob Halley's avatar
Bob Halley committed
129

130
docclean manclean maintainer-clean::
Bob Halley's avatar
Bob Halley committed
131
132
	rm -f ${MANOBJS}

133
clean distclean maintainer-clean::
134
	rm -f ${TARGETS} ${OBJS}
135
136

bind9.xsl.h: bind9.xsl convertxsl.pl
137
	${PERL} ${srcdir}/convertxsl.pl < ${srcdir}/bind9.xsl > bind9.xsl.h
138

139
depend: bind9.xsl.h
140
statschannel.@O@: bind9.xsl.h
Bob Halley's avatar
Bob Halley committed
141
142

installdirs:
143
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
144
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
145
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
Bob Halley's avatar
Bob Halley committed
146

Mark Andrews's avatar
Mark Andrews committed
147
install:: named@EXEEXT@ lwresd@EXEEXT@ installdirs
148
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@ ${DESTDIR}${sbindir}
Mark Andrews's avatar
Mark Andrews committed
149
	(cd ${DESTDIR}${sbindir}; rm -f lwresd@EXEEXT@; @LN@ named@EXEEXT@ lwresd@EXEEXT@)
150
151
152
153
	${INSTALL_DATA} ${srcdir}/named.8 ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/lwresd.8 ${DESTDIR}${mandir}/man8
	${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5

154
@DLZ_DRIVER_RULES@