1998-05-03 04:11:49 +00:00
|
|
|
# Copyright (c) 1996 by Internet Software Consortium
|
|
|
|
#
|
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
|
|
|
|
HFILES = netdb.h resolv.h irs.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
|
1996-08-29 19:20:22 +00:00
|
|
|
|
|
|
|
MARGS= DESTDIR="${DESTDIR}" DESTINC="${DESTINC}" INSTALL="${INSTALL}" \
|
|
|
|
MAKE="${MAKE}"
|
|
|
|
|
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 \
|
|
|
|
(cd $$x; pwd; ${MAKE} ${MARGS} $@); \
|
|
|
|
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 \
|
|
|
|
${INSTALL} -c -m 444 $$x ${DESTDIR}${DESTINC}/$$x; \
|
|
|
|
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; \
|
|
|
|
); \
|
|
|
|
done
|
|
|
|
|
|
|
|
FRC:
|