bc5dde
srcdir     =	@srcdir@
bc5dde
VPATH      =	@srcdir@
bc5dde
top_srcdir =	@top_srcdir@
bc5dde
3ce7d3
VERSION=@BIND9_VERSION@
bc5dde
bc5dde
@BIND9_MAKE_INCLUDES@
bc5dde
bc5dde
CINCLUDES =	-I${srcdir}/include -I${srcdir}/unix/include \
bc5dde
		${LWRES_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES} \
bc5dde
		${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES}
bc5dde
bc5dde
CDEFINES =	-DBIND9
bc5dde
bc5dde
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
bc5dde
ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
bc5dde
ISCCCLIBS =	../../lib/isccc/libisccc.@A@
bc5dde
ISCLIBS =	../../lib/isc/libisc.@A@
bc5dde
LWRESLIBS =	../../lib/lwres/liblwres.@A@
bc5dde
BIND9LIBS =	../../lib/bind9/libbind9.@A@
bc5dde
bc5dde
DNSDEPLIBS =	../../lib/dns/libdns.@A@
bc5dde
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
bc5dde
ISCCCDEPLIBS =	../../lib/isccc/libisccc.@A@
bc5dde
ISCDEPLIBS =	../../lib/isc/libisc.@A@
bc5dde
LWRESDEPLIBS =	../../lib/lwres/liblwres.@A@
bc5dde
BIND9DEPLIBS =	../../lib/bind9/libbind9.@A@
bc5dde
bc5dde
DEPLIBS =	${LWRESDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS} \
bc5dde
		${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${ISCDEPLIBS}
bc5dde
bc5dde
LIBS =		${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
bc5dde
		${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} ${DBDRIVER_LIBS} @LIBS@
bc5dde
bc5dde
TARGETS =	zone2ldap@EXEEXT@ zonetodb@EXEEXT@
bc5dde
bc5dde
OBJS	=	zone2ldap.@O@ zonetodb.@O@
bc5dde
bc5dde
SRCS    =       zone2ldap.c zonetodb.c
bc5dde
bc5dde
MANPAGES =      zone2ldap.1
bc5dde
bc5dde
EXT_CFLAGS =
bc5dde
bc5dde
@BIND9_MAKE_RULES@
bc5dde
bc5dde
zone2ldap@EXEEXT@: zone2ldap.@O@ ${DEPLIBS}
bc5dde
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zone2ldap.@O@ -lldap -llber ${LIBS}
bc5dde
bc5dde
zonetodb@EXEEXT@: zonetodb.@O@  ${DEPLIBS}
bc5dde
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zonetodb.@O@ -lpq ${LIBS}
bc5dde
bc5dde
clean distclean manclean maintainer-clean::
bc5dde
	rm -f ${TARGETS} ${OBJS}
bc5dde
bc5dde
installdirs:
bc5dde
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
bc5dde
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
bc5dde
bc5dde
install:: ${TARGETS} installdirs
bc5dde
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} zone2ldap@EXEEXT@ ${DESTDIR}${sbindir}
bc5dde
	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} zonetodb@EXEEXT@  ${DESTDIR}${sbindir}
bc5dde
	${INSTALL_DATA} ${srcdir}/zone2ldap.1 ${DESTDIR}${mandir}/man1/zone2ldap.1