2000-05-26 07:17:19 +00:00
|
|
|
## Copyright (c) 1996,1999 by Internet Software Consortium.
|
1997-06-27 07:25:32 +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.
|
|
|
|
|
2001-01-28 23:00:22 +00:00
|
|
|
# $Id: Makefile,v 8.52 2000/11/21 12:54:37 marka Exp $
|
1998-05-03 04:11:49 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
TOP=
|
|
|
|
SUBDIRS= include port lib bin
|
1998-05-03 04:11:49 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
SH=sh
|
1998-05-03 04:11:49 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
default: all
|
1999-11-30 02:43:11 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
all clean depend install distclean:: FRC
|
|
|
|
@set -e; \
|
|
|
|
version=`cat ${TOP}Version`; \
|
|
|
|
systype=`${SH} ${TOP}port/systype ${TOP}.systype`; \
|
|
|
|
if [ $$systype = "unknown" ]; then \
|
|
|
|
echo "There is no BIND port for this system in this kit."; \
|
|
|
|
else \
|
|
|
|
settings=`${SH} ${TOP}port/settings ${TOP}.settings \
|
|
|
|
< ${TOP}port/$$systype/Makefile.set`; \
|
|
|
|
PATH=`pwd`/port/$$systype/bin:$$PATH; export PATH; \
|
|
|
|
for x in ${SUBDIRS}; do \
|
|
|
|
( cd $$x; pwd; \
|
|
|
|
eval "${MAKE} $$settings ${MARGS} SYSTYPE=$$systype \
|
|
|
|
VER=$$version \
|
|
|
|
$@"; \
|
2001-01-28 23:00:22 +00:00
|
|
|
) || exit 1; \
|
2000-05-26 07:17:19 +00:00
|
|
|
done \
|
|
|
|
fi
|
1998-05-03 04:11:49 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
clean distclean::
|
|
|
|
rm -f .systype .settings
|
1998-05-03 04:11:49 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
links: FRC
|
|
|
|
@set -e; mkdir ${DST}; cd ${DST}; pwd; ln -s ${SRC} SRC; \
|
|
|
|
ln -s SRC/Version .; cp SRC/Makefile .; chmod +w Makefile; \
|
|
|
|
systype=`${SH} SRC/port/systype`; \
|
|
|
|
for x in ${SUBDIRS} ; do \
|
|
|
|
( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
|
|
|
|
cp SRC/Makefile Makefile; chmod +w Makefile; \
|
|
|
|
${MAKE} ${MARGS} SYSTYPE=$$systype links; \
|
2001-01-28 23:00:22 +00:00
|
|
|
) || exit 1; \
|
2000-05-26 07:17:19 +00:00
|
|
|
done
|
1996-08-29 19:20:22 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
stdlinks: FRC
|
|
|
|
if [ ! -d /var/obj ]; then \
|
|
|
|
mkdir /var/obj; \
|
|
|
|
fi
|
|
|
|
${MAKE} ${MARGS} SRC=`pwd` DST=/var/obj/bind links
|
1996-08-29 19:20:22 +00:00
|
|
|
|
2000-05-26 07:17:19 +00:00
|
|
|
uplinks: FRC
|
|
|
|
@set -e; systype=`${SH} ${TOP}port/systype`; pwd=`pwd`; \
|
|
|
|
${MAKE} ${MARGS} SRC=../`basename $$pwd` "DST=../$$systype" links
|
1996-08-29 19:20:22 +00:00
|
|
|
|
|
|
|
FRC:
|