Makefile.in revision 49dd07115343a0603dbea27db08dd00f9b5256ff
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# Copyright (C) 1998, 1999 Internet Software Consortium.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# Permission to use, copy, modify, and distribute this software for any
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# purpose with or without fee is hereby granted, provided that the above
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# copyright notice and this permission notice appear in all copies.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedysrcdir = @srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyVPATH = @srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedytop_srcdir = @top_srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy@BIND9_VERSION@
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyCINCLUDES = -I${srcdir}/../isc/unix/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I${srcdir}/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# Alphabetically
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyOBJS = callbacks.o compress.o db.o dbiterator.o dbtable.o dispatch.o \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy lib.o master.o message.o name.o rbt.o rbtdb.o rbtdb64.o \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy rdata.o rdatalist.o rdataset.o rdatasetiter.o rdataslab.o \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy resolver.o result.o version.o masterdump.o time.o ttl.o
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyOSRC = callbacks.c compress.c db.c dbiterator.c dbtable.c dispatch.c \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy lib.c master.c name.c rbt.c rbtdb.c rbtdb64.c \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy rdata.c rdatalist.c rdataset.c rdatasetiter.c rdataslab.c \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy resolver.c result.c version.c masterdump.c time.c ttl.c
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedySUBDIRS = include
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyTARGETS = include/dns/enumtype.h include/dns/enumclass.h \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy@BIND9_MAKE_RULES@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" -c $<
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy ${AR} cruv $@ ${OBJS}
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy touch timestamp
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy if [ ! -d ${libdir} ]; then \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy mkdir ${libdir} ; \
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedyinstall:: timestamp installdirs
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${INSTALL_DATA} libdns.a ${libdir}
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyclean distclean::
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy rm -f libdns.a timestamp
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy ./gen -s ${srcdir} -t > $@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ./gen -s ${srcdir} -c > $@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyinclude/dns/rdatastruct.h: gen rdata/rdatastructpre.h rdata/rdatastructsuf.h
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ./gen -s ${srcdir} -i \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -P rdata/rdatastructpre.h -S rdata/rdatastructsuf.h > $@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ./gen -s ${srcdir} > code.h
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${CC} ${ALL_CFLAGS} -o $@ $? ${LIBS}