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