]> git.ipfire.org Git - thirdparty/dhcp.git/blame - util/Makefile.bind
[master] Versioning updates for v4.3.2b1
[thirdparty/dhcp.git] / util / Makefile.bind
CommitLineData
95bba8b6 1#
d81e9330 2# Copyright (C) 2009-2012 Internet Systems Consortium, Inc. ("ISC")
95bba8b6
SR
3#
4# Permission to use, copy, modify, and/or distribute this software for any
5# purpose with or without fee is hereby granted, provided that the above
6# copyright notice and this permission notice appear in all copies.
7#
8# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14# PERFORMANCE OF THIS SOFTWARE.
15
d81e9330 16# $Id: Makefile.bind,v 1.8 2012/04/05 22:16:47 sar Exp $
95bba8b6
SR
17
18# Configure and build the bind libraries for use by DHCP
19
20include ./version.tmp
21version=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
22
23# bindvar.tmp is constructed by configure, it has the paths for
24# if GMAKE is blank the shell script couldn't find a gmake to use.
25# binddir=
26# GMAKE=
27include ./bindvar.tmp
28
29bindsrcdir=bind-${version}
30
31all:
32# Extract the source from the tarball, if it hasn't been already.
33 @if test -d ${bindsrcdir} ; then \
34 echo ${bindsrcdir} already unpacked... ; \
35 else \
36 gunzip -c bind.tar.gz | tar xf - ; \
37 fi
38
39 @if test -z "${GMAKE}"; then \
40 echo "unable to find gmake" 1>&2 ; \
41 exit 1; \
42 fi
43
44# Configure the export libraries
45# Currently disable the epoll and devpoll options as they don't interact
46# well with the DHCP code.
d81e9330
SR
47# If the top-level Bind Makefile exists we skip the configuration step
48# as we assume it's done and won't change. Doing a make clean will
49# reset things if necessary.
50 @if test -f ${bindsrcdir}/Makefile ; then \
51 echo Bind export libraries already configured ; \
52 else \
53 echo Configuring BIND Export libraries for DHCP. ; \
54 rm -rf ./lib ./include ./configure.log ./build.log ./install.log ; \
55 (cd ${bindsrcdir} && ./configure --disable-kqueue --disable-epoll --disable-devpoll --without-openssl --without-libxml2 --enable-exportlib --enable-threads=no --with-export-includedir=${binddir}/include --with-export-libdir=${binddir}/lib --with-gssapi=no > ${binddir}/configure.log); \
56 fi
95bba8b6 57
d81e9330
SR
58# Build and install the export libraries
59# No need to do anything if we already have something installed.
60 @if test -d ${binddir}/lib ; then \
61 echo Bind export libraries already installed ; \
62 else \
63 echo Building BIND Export libraries - this takes some time. ;\
64 (cd ${bindsrcdir}/lib/export ; \
65 echo building in `pwd` ; \
66 MAKE=${GMAKE} ${GMAKE} > ${binddir}/build.log) ; \
67 \
68 echo Installing BIND Export libraries to ${binddir}. ; \
69 (cd ${bindsrcdir}/lib/export ; \
70 MAKE=${GMAKE} ${GMAKE} install > ${binddir}/install.log) ; \
71 fi
95bba8b6
SR
72
73clean:
74 @echo Cleaning BIND export library.
75 rm -rf ${bindsrcdir} ./lib ./include ./configure.log ./build.log \
76 ./install.log
77
b3745bf5
SR
78# Include the following so that this Makefile is happy when the parent
79# tries to use them.
80
95bba8b6
SR
81distdir:
82
4fc3ad32 83distclean:
95bba8b6 84
b3745bf5 85install:
d130b8e8
DH
86
87check:
88
d81e9330 89uninstall: