]> git.ipfire.org Git - thirdparty/dhcp.git/blob - bind/Makefile.in
[#189] Whitespace fixes in opened files
[thirdparty/dhcp.git] / bind / Makefile.in
1 #
2 # Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
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
16 # Configure and build the bind libraries for use by DHCP
17
18 binddir=@BINDDIR@
19 bindsrcdir=@BINDSRCDIR@
20
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 bindconfig = --without-openssl --without-libxml2 --without-libjson \
25 --without-gssapi --disable-threads --without-lmdb \
26 --includedir=@includedir@ --libdir=@libdir@ --without-python\
27 @BINDLT@ @BINDIOMUX@ @BINDCONFIG@ --enable-full-report
28
29 @BIND_ATF_FALSE@cleandirs = ./lib ./include
30 @BIND_ATF_TRUE@cleandirs = ./lib ./include ./atf
31 cleanfiles = ./configure.log ./build.log ./install.log
32
33 bindlibs = isc dns isccfg irs
34 installdirs = includedir=${binddir}/include libdir=${binddir}/lib
35
36 @BIND_ATF_FALSE@all: bind1 bind2
37 @BIND_ATF_TRUE@all: bind1 atf bind2
38
39 bind1:
40 # Extract the source from the tarball, if it hasn't been already.
41 @if test -d ${bindsrcdir} ; then \
42 echo ${bindsrcdir} already unpacked... ; \
43 else \
44 gunzip -c bind.tar.gz | tar xf - ; \
45 fi
46
47 # Configure the libraries
48 # Currently disable the epoll, devpoll and kqueue options as they
49 # don't interact well with the DHCP code.
50 # If the top-level Bind Makefile exists we skip the configuration step
51 # as we assume it's done and won't change. Doing a make clean will
52 # reset things if necessary.
53 @if test -f ${bindsrcdir}/Makefile ; then \
54 echo Bind libraries already configured ; \
55 else \
56 echo Configuring BIND libraries for DHCP. ; \
57 rm -rf ${cleandirs} ${cleanfiles} ; \
58 (cd ${bindsrcdir} && \
59 ./configure ${bindconfig} > ${binddir}/configure.log); \
60 fi
61
62 atf:
63 # Build and copy the ATF support if not yet installed.
64 @if test -d ./atf ; then \
65 echo ATF support already installed ; \
66 else \
67 echo Building ATF support ; \
68 (cd ${bindsrcdir}/unit; \
69 $(MAKE) atf > ${binddir}/build.log ; \
70 cp -rp atf ${binddir}) ; \
71 fi
72
73 bind2:
74 # Build and install the libraries
75 # No need to do anything if we already have something installed.
76 @if test -d ${binddir}/lib ; then \
77 echo Bind libraries already installed ; \
78 else \
79 echo Building BIND libraries - this takes some time. ; \
80 for libdir in ${bindlibs} ; do \
81 (cd ${bindsrcdir}/lib/$$libdir ; \
82 echo Building $$libdir library in `pwd` ; \
83 $(MAKE) all >> ${binddir}/build.log) ; \
84 done ; \
85 \
86 echo Installing BIND libraries to ${binddir}. ; \
87 for libdir in ${bindlibs} ; do \
88 (cd ${bindsrcdir}/lib/$$libdir ; \
89 MAKEDEFS="${installdirs}"; export MAKEDEFS; \
90 $(MAKE) ${installdirs} LIBTOOL_MODE_INSTALL= install >> \
91 ${binddir}/install.log) ; \
92 done ; \
93 fi
94
95 clean:
96 @echo Cleaning BIND library.
97 rm -rf ${bindsrcdir} ${cleandirs} ${cleanfiles}
98
99 @INSTALL_BIND_FALSE@install:
100 @INSTALL_BIND_TRUE@install: install-bind
101
102 install-bind: all
103 @for libdir in ${bindlibs} ; do \
104 (cd ${bindsrcdir}/lib/$$libdir ; \
105 $(MAKE) install) ; \
106 done
107
108 @INSTALL_BIND_FALSE@uninstall:
109 @INSTALL_BIND_TRUE@uninstall: uninstall-bind
110
111 uninstall-bind: all
112 @for libdir in ${bindlibs} ; do \
113 (cd ${bindsrcdir}/lib/$$libdir ; \
114 $(MAKE) uninstall) ; \
115 done
116
117 # Include the following so that this Makefile is happy when the parent
118 # tries to use them.
119 install-exec:
120
121 check distdir distclean dvi installcheck: