# Generated automatically from Makefile.in by configure.
# Copyright (C) 1998-2001  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.

# $Id: Makefile.in,v 1.117.4.1 2001/01/09 22:43:19 bwelling Exp $

srcdir =	.
top_srcdir =	../..

VERSION=9.1.0rc1


LIBINTERFACE = 3
LIBREVISION = 0
LIBAGE = 0


# Copyright (C) 1999-2001  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.

# $Id: includes.in,v 1.10.4.1 2001/01/09 22:53:25 bwelling Exp $

# 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/afs/net.mit.edu/project/bind/9.1.0/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/nothreads/include

DNS_INCLUDES = -I/afs/net.mit.edu/project/bind/9.1.0/lib/dns/include \
	-I${top_srcdir}/lib/dns/include \
	-I${top_srcdir}/lib/dns/sec/dst/include

OMAPI_INCLUDES = -I/afs/net.mit.edu/project/bind/9.1.0/lib/omapi/include \
	-I${top_srcdir}/lib/omapi/include

LWRES_INCLUDES = -I/afs/net.mit.edu/project/bind/9.1.0/lib/lwres/include \
	-I${top_srcdir}/lib/lwres/include

TEST_INCLUDES = \
	-I${top_srcdir}/lib/tests/include

CINCLUDES =	-I. ${DNS_INCLUDES} ${ISC_INCLUDES}

CDEFINES =
CWARNINGS =

LIBS =		-lnsl -lsocket 


# Alphabetically

CONFOBJS =	config/confacl.o config/confcache.o config/confcommon.o \
		config/confctl.o config/confctx.o \
		config/confip.o config/confkeys.o \
		config/conflog.o config/conflsn.o \
		config/conflwres.o \
		config/confndc.o config/confparser.o \
		config/confresolv.o config/confrrset.o \
		config/confview.o config/confzone.o

DSTOBJS =	sec/dst/dst_api.o \
		sec/dst/dst_lib.o sec/dst/dst_parse.o \
		sec/dst/dst_result.o sec/dst/gssapi_link.o \
		sec/dst/hmac_link.o sec/dst/openssl_link.o \
		sec/dst/gssapictx.o \
		sec/dst/openssldh_link.o sec/dst/opensslrsa_link.o

OPENSSLOBJS =	sec/openssl/a_bitstr.o sec/openssl/a_bytes.o \
		sec/openssl/a_enum.o sec/openssl/a_gentm.o \
		sec/openssl/a_int.o sec/openssl/a_object.o \
		sec/openssl/a_octet.o sec/openssl/a_print.o \
		sec/openssl/a_set.o sec/openssl/a_type.o \
		sec/openssl/a_utctm.o sec/openssl/a_utf8.o \
		sec/openssl/a_vis.o sec/openssl/asn1_lib.o \
		sec/openssl/bn_add.o sec/openssl/bn_asm.o \
		sec/openssl/bn_blind.o \
		sec/openssl/bn_ctx.o sec/openssl/bn_div.o \
		sec/openssl/bn_err.o sec/openssl/bn_exp.o \
		sec/openssl/bn_exp2.o sec/openssl/bn_gcd.o \
		sec/openssl/bn_lib.o sec/openssl/bn_mont.o \
		sec/openssl/bn_mul.o sec/openssl/bn_prime.o \
		sec/openssl/bn_print.o sec/openssl/bn_rand.o \
		sec/openssl/bn_recp.o sec/openssl/bn_shift.o \
		sec/openssl/bn_sqr.o sec/openssl/bn_word.o \
		sec/openssl/buffer.o sec/openssl/cryptlib.o \
		sec/openssl/dh_err.o sec/openssl/dh_gen.o \
		sec/openssl/dh_key.o  sec/openssl/dh_lib.o \
		sec/openssl/dsa_asn1.o sec/openssl/dsa_err.o \
		sec/openssl/dsa_gen.o sec/openssl/dsa_key.o \
		sec/openssl/dsa_lib.o  sec/openssl/dsa_ossl.o \
		sec/openssl/dsa_sign.o sec/openssl/dsa_vrf.o \
		sec/openssl/err.o sec/openssl/ex_data.o \
		sec/openssl/lhash.o sec/openssl/mem_dbg.o \
		sec/openssl/mem.o sec/openssl/obj_dat.o \
		sec/openssl/obj_lib.o sec/openssl/rand_lib.o \
                sec/openssl/rsa_chk.o sec/openssl/rsa_eay.o \
                sec/openssl/rsa_gen.o sec/openssl/rsa_lib.o \
		sec/openssl/rsa_none.o sec/openssl/rsa_oaep.o \
		sec/openssl/rsa_pk1.o \
		sec/openssl/rsa_sign.o sec/openssl/rsa_ssl.o \
		sec/openssl/sha1_one.o sec/openssl/sha1dgst.o \
		sec/openssl/stack.o \
		sec/openssl/x_sig.o sec/openssl/x_algor.o

# Alphabetically
OBJS =		a6.o acl.o adb.o byaddr.o \
		cache.o callbacks.o compress.o \
		db.o dbiterator.o dbtable.o diff.o dispatch.o \
		dnssec.o forward.o journal.o keytable.o \
		lib.o log.o lookup.o \
		master.o masterdump.o message.o \
		name.o ncache.o nxt.o peer.o \
		rbt.o rbtdb.o rbtdb64.o rdata.o rdatalist.o \
		rdataset.o rdatasetiter.o rdataslab.o request.o \
		resolver.o result.o rootns.o sdb.o ssu.o \
		stats.o tcpmsg.o time.o timer.o tkey.o \
		tsig.o ttl.o validator.o \
		version.o view.o xfrin.o zone.o zt.o \
		${OTHEROBJS} ${DSTOBJS}  ${CONFOBJS}

# Alphabetically
SRCS =		a6.c acl.c adb.c byaddr.c \
		cache.c callbacks.c compress.c \
		db.c dbiterator.c dbtable.c diff.c dispatch.c \
		dnssec.c forward.c journal.c keytable.c \
		lib.c log.c lookup.c \
		master.c masterdump.c message.c \
		name.c ncache.c nxt.c peer.c \
		rbt.c rbtdb.c rbtdb64.c rdata.c rdatalist.c \
		rdataset.c rdatasetiter.c rdataslab.c request.c \
		resolver.c result.c rootns.c sdb.c ssu.c \
		stats.c tcpmsg.c time.c timer.c tkey.c \
		tsig.c ttl.c validator.c \
		version.c view.c xfrin.c zone.c zt.c ${OTHERSRCS}

SUBDIRS =	include sec config
TARGETS =	include/dns/enumtype.h include/dns/enumclass.h \
		include/dns/rdatastruct.h timestamp

DEPENDEXTRA =	./gen -F include/dns/rdatastruct.h \
		-s ${srcdir} -d >> Makefile ;


# Copyright (C) 1998-2001  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.

# $Id: rules.in,v 1.25.2.1 2001/01/09 22:53:27 bwelling Exp $

###
### 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/bind
exec_prefix =	${prefix}
bindir =	${exec_prefix}/bin
sbindir =	${exec_prefix}/sbin
includedir =	${prefix}/include
libdir =	${exec_prefix}/lib
sysconfdir =	${prefix}/etc
localstatedir =	${prefix}/var

DESTDIR =



top_builddir =	/afs/net.mit.edu/project/bind/9.1.0

###
### 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) || exit 1; \
		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} $@) || exit 1; \
		fi \
	done

###
### C Programs
###
### Makefile must define
###	CC
### Makefile may define
###	CFLAGS
###	CINCLUDES
###	CDEFINES
###	CWARNINGS
### User may define externally
###     EXT_CFLAGS

CC = 		gcc
CFLAGS =	-g -O2
STD_CINCLUDES =	
STD_CDEFINES =	
STD_CWARNINGS =	 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings

.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 = ${EXT_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

cleandir: distclean

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} $@) || exit 1; \
		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}; \
		${DEPENDEXTRA} \
	elif [ X"${SRCS}" != X ] ; then \
		echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
		${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
		${DEPENDEXTRA} \
	elif [ X"${PSRCS}" != X ] ; then \
		echo ${MKDEP} ${ALL_CPPFLAGS} ${PSRCS}; \
		${MKDEP} -p ${ALL_CPPFLAGS} ${PSRCS}; \
		${DEPENDEXTRA} \
	fi

FORCE:

###
### Libraries
###

AR =		/usr/ccs/bin/ar
ARFLAGS =	cruv
RANLIB =	ranlib

###
### Installation
###

INSTALL =		/usr/athena/bin/install -c
INSTALL_PROGRAM =	${INSTALL}
INSTALL_DATA =		${INSTALL} -m 644

version.o: version.c
	${LIBTOOL} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
		-DLIBINTERFACE=${LIBINTERFACE} \
		-DLIBREVISION=${LIBREVISION} \
		-DLIBAGE=${LIBAGE} \
		-c ${srcdir}/version.c

libdns.a: ${OBJS}
	${AR} ${ARFLAGS} $@ ${OBJS}
	${RANLIB} $@

libdns.la: ${OBJS}
	${LIBTOOL} --mode=link \
		${CC} ${ALL_CFLAGS} -o libdns.la -rpath ${libdir} \
		-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
		${OBJS} ${LIBS}

timestamp: libdns.a
	touch timestamp

installdirs:
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

install:: timestamp installdirs
	${LIBTOOL} ${INSTALL_DATA} libdns.a ${DESTDIR}${libdir}

clean distclean::
	rm -f libdns.a timestamp
	rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
	rm -f include/dns/rdatastruct.h

newrr::
	rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
	rm -f include/dns/rdatastruct.h

include: include/dns/enumtype.h include/dns/enumclass.h \
	include/dns/rdatastruct.h

rdata.o: code.h

include/dns/enumtype.h: gen
	./gen -s ${srcdir} -t > $@

include/dns/enumclass.h: gen
	./gen -s ${srcdir} -c > $@

include/dns/rdatastruct.h: gen \
		${srcdir}/rdata/rdatastructpre.h \
		${srcdir}/rdata/rdatastructsuf.h
	./gen -s ${srcdir} -i \
		-P ${srcdir}/rdata/rdatastructpre.h \
		-S ${srcdir}/rdata/rdatastructsuf.h > $@

code.h:	gen
	./gen -s ${srcdir} > code.h

gen: gen.c
	${CC} ${ALL_CFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}

rbtdb64.o: rbtdb.c

depend: include/dns/enumtype.h include/dns/enumclass.h \
	include/dns/rdatastruct.h code.h
subdirs: include/dns/enumtype.h include/dns/enumclass.h \
	include/dns/rdatastruct.h code.h
