Makefile.in revision 499b34cea04a46823d003d4c0520c8b03e8513cb
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Copyright (C) 1998-2001 Internet Software Consortium.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Permission to use, copy, modify, and distribute this software for any
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# purpose with or without fee is hereby granted, provided that the above
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# copyright notice and this permission notice appear in all copies.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# $Id: Makefile.in,v 1.64 2001/01/09 21:39:38 bwelling Exp $
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssrcdir = @srcdir@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsVPATH = @srcdir@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstop_srcdir = @top_srcdir@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews@BIND9_VERSION@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews@BIND9_INCLUDES@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Add database drivers here.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDBDRIVER_OBJS =
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDBDRIVER_SRCS =
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDBDRIVER_INCLUDES =
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDBDRIVER_LIBS =
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${LWRES_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${OMAPI_INCLUDES} ${DBDRIVER_INCLUDES}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCDEFINES =
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCWARNINGS =
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOMAPILIBS = ../../lib/omapi/libomapi.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDNSLIBS = ../../lib/dns/libdns.@A@ @DNS_OPENSSL_LIBS@ @DNS_GSSAPI_LIBS@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsISCLIBS = ../../lib/isc/libisc.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLWRESLIBS = ../../lib/lwres/liblwres.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOMAPIDEPLIBS = ../../lib/omapi/libomapi.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDNSDEPLIBS = ../../lib/dns/libdns.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsISCDEPLIBS = ../../lib/isc/libisc.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLWRESDEPLIBS = ../../lib/lwres/liblwres.@A@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDEPLIBS = ${LWRESDEPLIBS} ${OMAPIDEPLIBS} ${DNSDEPLIBS} ${ISCDEPLIBS}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS = ${LWRESLIBS} ${OMAPILIBS} ${DNSLIBS} ${ISCLIBS} \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${DBDRIVER_LIBS} @LIBS@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSUBDIRS = unix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsTARGETS = named lwresd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOBJS = aclconf.@O@ client.@O@ interfacemgr.@O@ listenlist.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews log.@O@ logconf.@O@ main.@O@ notify.@O@ omapi.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews omapiconf.@O@ query.@O@ server.@O@ sortlist.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews zoneconf.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews $(DBDRIVER_OBJS)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsUOBJS = unix/os.@O@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSRCS = aclconf.c client.c interfacemgr.c listenlist.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews log.c logconf.c main.c notify.c omapi.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews omapiconf.c query.c server.c sortlist.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tkeyconf.c tsigconf.c update.c xfrout.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews zoneconf.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews $(DBDRIVER_SRCS)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews@BIND9_MAKE_RULES@
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmain.@O@: main.c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${LIBTOOL} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -DNS_LOCALSTATEDIR=\"${localstatedir}\" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -DNS_SYSCONFDIR=\"${sysconfdir}\" -c ${srcdir}/main.c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsnamed: ${OBJS} ${UOBJS} ${DEPLIBS}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${LIBTOOL} ${CC} ${CFLAGS} -o $@ ${OBJS} ${UOBJS} ${LIBS}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslwresd: named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f lwresd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews @LN@ named lwresd
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsclean distclean::
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f ${TARGETS}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsinstalldirs:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsinstall:: named lwresd installdirs
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ${LIBTOOL} ${INSTALL_PROGRAM} named ${DESTDIR}${sbindir}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (cd ${DESTDIR}${sbindir}; rm -f lwresd; @LN@ named lwresd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews