263 lines
6.9 KiB
Makefile
263 lines
6.9 KiB
Makefile
# Generated automatically from Makefile.in by configure.
|
|
# Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
srcdir = .
|
|
top_srcdir = ../..
|
|
|
|
|
|
# Copyright (C) 1999, 2000 Internet Software Consortium.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
# Search for machine-generated header files in the build tree,
|
|
# and for normal headers in the source tree (${top_srcdir}).
|
|
# We only need to look in OS-specific subdirectories for the
|
|
# latter case, because there are no machine-generated OS-specific
|
|
# headers.
|
|
|
|
ISC_INCLUDES = -I/export/home/mws/bind9/lib/isc/include \
|
|
-I${top_srcdir}/lib/isc \
|
|
-I${top_srcdir}/lib/isc/include \
|
|
-I${top_srcdir}/lib/isc/unix/include \
|
|
-I${top_srcdir}/lib/isc/pthreads/include
|
|
|
|
DNS_INCLUDES = -I/export/home/mws/bind9/lib/dns/include \
|
|
-I${top_srcdir}/lib/dns/include \
|
|
-I${top_srcdir}/lib/dns/sec/dst/include
|
|
|
|
OMAPI_INCLUDES = -I/export/home/mws/bind9/lib/omapi/include \
|
|
-I${top_srcdir}/lib/omapi/include
|
|
|
|
LWRES_INCLUDES = -I/export/home/mws/bind9/lib/lwres/include \
|
|
-I${top_srcdir}/lib/lwres/include
|
|
|
|
TEST_INCLUDES = \
|
|
-I${top_srcdir}/lib/tests/include
|
|
|
|
CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${LWRES_INCLUDES} \
|
|
${OMAPI_INCLUDES} -I./unix/include -I./include
|
|
|
|
CDEFINES =
|
|
CWARNINGS =
|
|
|
|
DNSLIBS = ../../lib/dns/libdns.a
|
|
ISCLIBS = ../../lib/isc/libisc.a
|
|
OMAPILIBS = ../../lib/omapi/libomapi.a
|
|
LWRESLIBS = ../../lib/lwres/liblwres.a
|
|
|
|
DNSDEPLIBS = ../../lib/dns/libdns.a
|
|
ISCDEPLIBS = ../../lib/isc/libisc.a
|
|
OMAPIDEPLIBS = ../../lib/omapi/libomapi.a
|
|
LWRESDEPLIBS = ../../lib/lwres/liblwres.a
|
|
|
|
LIBS = -lnsl -lsocket -lpthread -lthread
|
|
|
|
SUBDIRS = db dst master mem names rbt sockaddr tasks timers
|
|
|
|
# Alphabetically
|
|
TARGETS = dig
|
|
|
|
# Alphabetically
|
|
SRCS = dig.c\
|
|
printmsg.c
|
|
|
|
|
|
|
|
# Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
###
|
|
### Common Makefile rules for BIND 9.
|
|
###
|
|
|
|
###
|
|
### Paths
|
|
###
|
|
### Note: paths that vary by Makefile MUST NOT be listed
|
|
### here, or they won't get expanded correctly.
|
|
|
|
prefix = /usr/local
|
|
exec_prefix = ${prefix}
|
|
bindir = ${exec_prefix}/bin
|
|
sbindir = ${exec_prefix}/sbin
|
|
includedir = ${prefix}/include
|
|
libdir = ${exec_prefix}/lib
|
|
sysconfdir = /etc
|
|
localstatedir = /var
|
|
|
|
DESTDIR =
|
|
|
|
|
|
|
|
top_builddir = /export/home/mws/bind9
|
|
|
|
###
|
|
### All
|
|
###
|
|
### Makefile may define:
|
|
### TARGETS
|
|
|
|
all: subdirs ${TARGETS}
|
|
|
|
###
|
|
### Subdirectories
|
|
###
|
|
### Makefile may define:
|
|
### SUBDIRS
|
|
|
|
ALL_SUBDIRS = ${SUBDIRS} nulldir
|
|
|
|
#
|
|
# We use a single-colon rule so that additional dependencies of
|
|
# subdirectories can be specified after the inclusion of this file.
|
|
# The "depend" target is treated the same way.
|
|
#
|
|
subdirs:
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
|
echo "making all in `pwd`/$$i"; \
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} all); \
|
|
fi \
|
|
done
|
|
|
|
install clean distclean::
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
|
echo "making $@ in `pwd`/$$i"; \
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} $@); \
|
|
fi \
|
|
done
|
|
|
|
###
|
|
### C Programs
|
|
###
|
|
### Makefile must define
|
|
### CC
|
|
### Makefile may define
|
|
### CFLAGS
|
|
### CINCLUDES
|
|
### CDEFINES
|
|
### CWARNINGS
|
|
|
|
CC = gcc
|
|
CFLAGS = -g -O2
|
|
STD_CINCLUDES =
|
|
STD_CDEFINES =
|
|
STD_CWARNINGS = -W -Wall -Wmissing-prototypes
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .o
|
|
|
|
ALWAYS_INCLUDES = -I${top_builddir}
|
|
ALWAYS_DEFINES = -D_REENTRANT
|
|
ALWAYS_WARNINGS =
|
|
|
|
ALL_CPPFLAGS = \
|
|
${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
|
|
${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
|
|
|
|
ALL_CFLAGS = ${CFLAGS} \
|
|
${ALL_CPPFLAGS} \
|
|
${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
|
|
|
|
.c.o:
|
|
${LIBTOOL} ${CC} ${ALL_CFLAGS} -c $<
|
|
|
|
SHELL = /bin/sh
|
|
LIBTOOL =
|
|
|
|
MKDEP = ${SHELL} ${top_builddir}/make/mkdep
|
|
|
|
clean distclean::
|
|
rm -f *.o *.lo *.la core *.core
|
|
rm -rf .libs
|
|
|
|
distclean::
|
|
rm -f Makefile
|
|
|
|
depend:
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
|
echo "making depend in `pwd`/$$i"; \
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} $@); \
|
|
fi \
|
|
done
|
|
@if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
elif [ X"${SRCS}" != X ] ; then \
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
elif [ X"${PSRCS}" != X ] ; then \
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
${MKDEP} -p ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
fi
|
|
|
|
FORCE:
|
|
|
|
###
|
|
### Libraries
|
|
###
|
|
|
|
AR = /usr/ccs/bin/ar
|
|
ARFLAGS = cruv
|
|
RANLIB = ranlib
|
|
|
|
###
|
|
### Installation
|
|
###
|
|
|
|
INSTALL = /export/home/mws/bind9/install-sh -c
|
|
INSTALL_PROGRAM = ${INSTALL}
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
|
|
all: ${TARGETS}
|
|
|
|
dig: dig.o printmsg.o ${ISCDEPLIBS} ${DNSDEPLIBS}
|
|
${LIBTOOL} ${CC} ${CFLAGS} -o $@ dig.o printmsg.o\
|
|
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
|
distclean::
|
|
rm -f headerdep_test.sh
|
|
|
|
clean distclean::
|
|
rm -f ${TARGETS} ${XTARGETS}
|
|
rm -f t_journal
|