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