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