1 # Copyright (c) 1996,1999 by Internet Software Consortium
3 # Permission to use, copy, modify, and distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
7 # THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
8 # ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
9 # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
10 # CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
11 # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
12 # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
13 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
16 # $Id: Makefile,v 8.15 1999/08/08 17:13:24 vixie Exp $
18 # these are only appropriate for BSD 4.4 or derivatives, and are used in
19 # development. normal builds will be done in the top level directory and
20 # this Makefile will be invoked with a lot of overrides for the following:
26 DESTINC= /usr/local/bind/include
27 DESTLIB= /usr/local/lib
30 PORTINCL= ${TOP}/port/${SYSTYPE}/include
31 LIBBIND= ${TOP}/lib/libbind.${A}
37 SUBDIRS = bsdos decunix linux netbsd sunos ultrix
39 MARGS = "SYSTYPE=${SYSTYPE}" "SHELL=${SHELL}" "A=${A}" "O=${O}" \
40 "CC=${CC}" "LEX=${LEX}" "CDEBUG=${CDEBUG}" \
41 "SYSLIBS=${SYSLIBS}" "LDFLAGS=${LDFLAGS}" \
42 "DESTDIR=${DESTDIR}" "DESTMAN=${DESTMAN}" \
43 "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" "DESTEXEC=${DESTEXEC}" \
44 "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" "DESTHELP=${DESTHELP}" \
45 "RANLIB=${RANLIB}" "AR=${AR}" "ARPREF=${ARPREF}" "ARSUFF=${ARSUFF}" \
46 "INCL=../${INCL}" "PORTINCL=../${PORTINCL}" \
47 "LIBBIND=../${LIBBIND}" \
48 "INSTALL=${INSTALL}" "CPPFLAGS=${CPPFLAGS}" "TOP=../${TOP}"
53 @(cd ${SYSTYPE}; pwd; ${MAKE} ${MARGS} $@)
56 @set -e; for x in ${SUBDIRS}; do \
57 (cd $$x; pwd; ${MAKE} ${MARGS} $@); \
61 @set -e; cd ${SYSTYPE}; pwd; ${MAKE} ${MARGS} clean
64 rm -f *~ *.BAK *.CKP *.orig .systype
70 ln -s SRC/systype SRC/settings .; \
71 mkdir ${SYSTYPE}; cd ${SYSTYPE}; pwd; ln -s ../SRC/${SYSTYPE} SRC; \
72 cp SRC/Makefile Makefile; chmod +w Makefile; \
73 ${MAKE} ${MARGS} links