1999-11-30 02:43:11 +00:00
|
|
|
# Copyright (c) 1996,1999 by Internet Software Consortium
|
1998-05-03 04:11:49 +00:00
|
|
|
#
|
1996-08-29 19:20:22 +00:00
|
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
1998-05-03 04:11:49 +00:00
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
|
|
|
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
|
|
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
|
|
|
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
1996-08-29 19:20:22 +00:00
|
|
|
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
|
|
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
|
|
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
|
|
# SOFTWARE.
|
|
|
|
|
1998-05-03 04:11:49 +00:00
|
|
|
SUBDIRS = arpa isc
|
1999-11-30 02:43:11 +00:00
|
|
|
HFILES = netdb.h resolv.h res_update.h irs.h irp.h hesiod.h
|
1996-08-29 19:20:22 +00:00
|
|
|
|
|
|
|
DESTDIR=
|
1998-05-03 04:11:49 +00:00
|
|
|
DESTINC= /usr/local/bind/include
|
|
|
|
INSTALL= install
|
1999-11-30 02:43:11 +00:00
|
|
|
INSTALL_INC=
|
1996-08-29 19:20:22 +00:00
|
|
|
|
|
|
|
MARGS= DESTDIR="${DESTDIR}" DESTINC="${DESTINC}" INSTALL="${INSTALL}" \
|
1999-11-30 02:43:11 +00:00
|
|
|
MAKE="${MAKE}" INSTALL_INC=${INSTALL_INC}
|
1996-08-29 19:20:22 +00:00
|
|
|
|
1998-05-03 04:11:49 +00:00
|
|
|
all depend clean distclean install::
|
1996-08-29 19:20:22 +00:00
|
|
|
@for x in ${SUBDIRS}; do \
|
2001-01-28 23:00:22 +00:00
|
|
|
(cd $$x; pwd; ${MAKE} ${MARGS} $@) || exit 1; \
|
1996-08-29 19:20:22 +00:00
|
|
|
done
|
|
|
|
|
1998-05-03 04:11:49 +00:00
|
|
|
distclean:: clean
|
|
|
|
|
|
|
|
clean:: FRC
|
1996-08-29 19:20:22 +00:00
|
|
|
rm -f *~ *.BAK *.CKP *.orig
|
|
|
|
|
1998-05-03 04:11:49 +00:00
|
|
|
install:: ${DESTDIR}${DESTINC}
|
1996-08-29 19:20:22 +00:00
|
|
|
@set -x; for x in ${HFILES}; do \
|
1999-11-30 02:43:11 +00:00
|
|
|
${INSTALL} -c ${INSTALL_INC} -m 444 $$x ${DESTDIR}${DESTINC}/$$x; \
|
1996-08-29 19:20:22 +00:00
|
|
|
done
|
1998-05-03 04:11:49 +00:00
|
|
|
|
|
|
|
${DESTDIR}${DESTINC}:
|
|
|
|
mkdir -p ${DESTDIR}${DESTINC};
|
|
|
|
|
|
|
|
links:: FRC
|
|
|
|
@set -e; ln -s SRC/*.h .; \
|
|
|
|
for x in $(SUBDIRS); do \
|
|
|
|
( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
|
|
|
|
cp SRC/Makefile Makefile; chmod +w Makefile; \
|
|
|
|
$(MAKE) $(MARGS) links; \
|
2001-01-28 23:00:22 +00:00
|
|
|
) || exit 1; \
|
1998-05-03 04:11:49 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
FRC:
|