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