summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-04-16 23:47:32 +0200
committerFrancis Dupont <fdupont@isc.org>2015-04-16 23:47:32 +0200
commitb4a10c76f139f8070780b71366fcc083cbb1f126 (patch)
treeaf270ad0edf4259666f5ad44d2a3562b80f8bdf5 /util
parent1b245c913a93296cd6924d81cf7f876f874b080c (diff)
downloadisc-dhcp-b4a10c76f139f8070780b71366fcc083cbb1f126.tar.gz
rebased on #39300 for HP-UX make
Diffstat (limited to 'util')
-rw-r--r--util/Makefile.bind.in24
1 files changed, 23 insertions, 1 deletions
diff --git a/util/Makefile.bind.in b/util/Makefile.bind.in
index bd784c60..109a7987 100644
--- a/util/Makefile.bind.in
+++ b/util/Makefile.bind.in
@@ -78,13 +78,35 @@ atf:
cp -rp atf ${binddir}) ; \
fi
-bind2:
+@CROSS_COMPILING_FALSE@bind2: bind2-noguest
+@CROSS_COMPILING_TRUE@bind2: bind2-hostgen
+
+bind2-noguest:
+# Build and install the export libraries
+# No need to do anything if we already have something installed.
+ @if test -d ${binddir}/lib ; then \
+ echo Bind export libraries already installed ; \
+ else \
+ echo Building BIND Export libraries - this takes some time. ;\
+ (cd ${bindsrcdir}/lib/export ; \
+ echo building in `pwd` ; \
+ MAKE=${GMAKE} ${GMAKE} >> ${binddir}/build.log) ; \
+ \
+ echo Installing BIND Export libraries to ${binddir}. ; \
+ (cd ${bindsrcdir}/lib/export ; \
+ MAKE=${GMAKE} ${GMAKE} install > ${binddir}/install.log) ; \
+ fi
+
+bind2-hostgen:
# Build and install the export libraries
# No need to do anything if we already have something installed.
@if test -d ${binddir}/lib ; then \
echo Bind export libraries already installed ; \
else \
echo Building BIND Export libraries - this takes some time. ;\
+ (cd ${bindsrcdir}/lib/export/dns ; \
+ echo building gen using ${BUILD_CC} in `pwd` ; \
+ MAKE=${GMAKE} ${GMAKE} CC=${BUILD_CC} CFLAGS=${BUILD_CFLAGS} CPPFLAGS=${BUILD_CPPFLAGS} LDFLAGS=${BUILD_LDFLAGS} LIBS=${BUILD_LIBS} gen >> ${binddir}/build.log) ; \
(cd ${bindsrcdir}/lib/export ; \
echo building in `pwd` ; \
MAKE=${GMAKE} ${GMAKE} >> ${binddir}/build.log) ; \