home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
bind494s.zip
/
Makefile.OS2
< prev
next >
Wrap
Makefile
|
1996-09-04
|
9KB
|
246 lines
# Makefile for BIND>=4.9 top level
# vixie@decwrl December, 1992 [original]
#
# $Id: Makefile,v 8.39 1996/08/05 08:31:20 vixie Exp $
## ++Copyright++ 1989
## -
## Copyright (c) 1989
## The Regents of the University of California. All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in the
## documentation and/or other materials provided with the distribution.
## 3. All advertising materials mentioning features or use of this software
## must display the following acknowledgement:
## This product includes software developed by the University of
## California, Berkeley and its contributors.
## 4. Neither the name of the University nor the names of its contributors
## may be used to endorse or promote products derived from this software
## without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
## ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
## -
## Portions Copyright (c) 1993 by Digital Equipment Corporation.
##
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
## copyright notice and this permission notice appear in all copies, and that
## the name of Digital Equipment Corporation not be used in advertising or
## publicity pertaining to distribution of the document or software without
## specific, written prior permission.
##
## THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
## WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
## OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
## CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
## 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.
## -
## --Copyright--
VER = 4.9.4-P1
SHELL = /bin/sh
MAKE = make -f Makefile.OS2
DESTDIR =
INCL = include
RES = res/libresolv.a
COMPLIB = compat/lib/lib44bsd.a
# The default build parameters are given for 4.4 BSD. They should
# be overridden for other operating systems as indicated below.
#(BSD4.4, BSD/OS, FreeBSD, NetBSD, other net2-alikes)
#
# DO NOT COMMENT THESE OUT. OVERRIDE THEM BELOW.
#
CC = gcc $(CPPFLAGS)
LDFLAGS = -Zmt
LDDFLAGS = -Zmtd -Zcrtdll
CDEBUG = -O2 -Zmt -D__ST_MT__ERRNO
CPPFLAGS= -include /emx/include/sys/types.h -include /emx/include/sys/so_ioctl.h -DSIGIOT=SIGABRT
INDOT =
XFER_INDOT =
# I'm using flex 2.4.5
LEX = flex -I
LIBS = -lsocket -lflex -lsyslog
#some OS/2 specific stuff
ETCPATH = /tcpip
TCPIPPATH = /tcpip
MANPATH = /man
PIDDIR = ${ETCPATH}/etc
DESTBIN = ${TCPIPPATH}/bin
DESTSBIN = ${TCPIPPATH}/bin
DESTEXEC = ${TCPIPPATH}/bin
DESTMAN = {MANPATH}
#DESTHELP = ${TCPIPPATH}/help
#DESTLIB = /usr/lib
#DESTINC = /usr/include
COMPINCL = compat/include
LDS =
CATEXT = 0
INSTALL_COMPAT = install
INSTALL = install
RANLIB = ar s
AR = ar cru
MANROFF = ( tbl | nroff -man )
MANDIR = cat
PS = ps
IOT = ABRT
SHCC =
SHLD =
####################################################################
############ no user servicable parts beyond this point ############
####################################################################
MANARGS = \
"SHELL=${SHELL}" "INDOT=${INDOT}" "XFER_INDOT=${XFER_INDOT}" \
"DESTDIR=${DESTDIR}" "DESTMAN=${DESTMAN}" "INSTALL=${INSTALL}" \
CATEXT='${CATEXT}' MANDIR='${MANDIR}' MANROFF='${MANROFF}'
MARGS = "VER=${VER}" "CC=${CC}" "CDEBUG=${CDEBUG}" "LIBS=${LIBS}" \
"INCL=../${INCL}" "RES=../${RES}" "LEX=${LEX}" "LDFLAGS=${LDFLAGS}" "LDDFLAGS=${LDDFLAGS}"\
"PIDDIR=${PIDDIR}" "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" \
"DESTEXEC=${DESTEXEC}" "COMPINCL=../${COMPINCL}" \
"COMPLIB=../${COMPLIB}" "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" \
"DESTHELP=${DESTHELP}" "PIC=${PIC}" "SHCC=${SHCC}" "SHLD=${SHLD}" \
"AR=${AR}" "RANLIB=${RANLIB}" "LDS=${LDS}" 'ARPREF=${ARPREF}' \
'ARSUFF=${ARSUFF}' $(MANARGS) PS="${PS}" "IOT=${IOT}" \
"CPPFLAGS=${CPPFLAGS}"
MACHINE = native
DST = $(MACHINE).b
SRC = ..
# removed man (so manuals are not built)
SUBDIRS = res $(SHRES) include compat named tools
all:: FRC
all clean depend:: FRC
@for x in $(SUBDIRS); do \
(cd $$x; pwd; $(MAKE) $(MARGS) $@); \
done
$(SUBDIRS):: FRC
@for x in $@; do \
(cd $$x; pwd; $(MAKE) $(MARGS) all); \
done
clean:: FRC
-test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
(cd conf; rm -f *~ *.CKP *.BAK *.orig)
rm -f *~ *.CKP *.BAK *.orig
depend:: FRC
mkdirs: FRC
-set +e; for x in $(DESTBIN) $(DESTSBIN) $(DESTEXEC) \
$(DESTMAN) $(DESTHELP) $(DESTLIB) $(DESTINC); do \
test -d $$x || mkdir -p $$x; \
done
install: FRC
@for x in $(SUBDIRS); do \
y=`if [ "X$$x" = "Xcompat" ]; \
then echo ${INSTALL_COMPAT}; \
else echo install; \
fi`; \
(cd $$x; pwd; $(MAKE) $(MARGS) $$y); \
done
D = OPTIONS master bin doc named CHANGES README compat include res \
Makefile TODO conf man tools
copyright: FRC
bin/copyright <conf/copyright `find ${D} -type f ! -name '*,v' -print`
tar: FRC
( cd doc/bog; make file.psf file.lst )
find * '(' -name RCS -o -name obj -o -name .depend ')' \
-print >/tmp/bindXf
gnutar -c -z -f ../bind-${VER}.tar.gz -X /tmp/bindXf .
rm -f /tmp/bindXf
links: $(DST)
$(DST): FRC
@set -ex; mkdir $(DST); cd $(DST); \
ln -s $(SRC) SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
( mkdir include; cd include; ln -s ../SRC/include SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/*.h SRC/arpa .; \
); \
( mkdir conf; cd conf; ln -s ../SRC/conf SRC; \
ln -s SRC/*.h .; \
); \
( mkdir tools; cd tools; ln -s ../SRC/tools SRC; \
ln -s SRC/*.[ch] .; \
cp SRC/Makefile .; chmod +w Makefile; \
( mkdir nslookup; cd nslookup; ln -s ../SRC/nslookup SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/[a-z]* .; \
); \
); \
( mkdir res; cd res; ln -s ../SRC/res SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/*.[ch] .; \
); \
( mkdir compat; cd compat; ln -s ../SRC/compat SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/include .; \
( mkdir lib; cd lib; ln -s ../SRC/lib SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/*.c .; \
); \
); \
( mkdir named; cd named; ln -s ../SRC/named SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/*.[ch] SRC/*.sh .; \
); \
( mkdir shres; cd shres; ln -s ../SRC/shres SRC; \
( mkdir sunos; cd sunos; ln -s ../../SRC/shres/sunos SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/makeshlib SRC/*.patch* .; \
); \
( mkdir netbsd; cd netbsd; ln -s ../../SRC/shres/netbsd SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/makeshlib SRC/lorder-sparc.sed SRC/shlibname.awk .; \
); \
( mkdir solaris; cd solaris; ln -s ../../SRC/shres/solaris SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
); \
); \
( mkdir man; cd man; ln -s ../SRC/man SRC; \
cp SRC/Makefile .; chmod +w Makefile; \
ln -s SRC/*.[0-9] .; \
)
gcc2-lint: FRC
@-make CC="gcc2 -Wall -Wno-comment -Wno-parentheses -Dlint" all \
2>&1 | grep '\.[ch]:[0-9]'
FRC: