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