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