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