Makefile.in revision 49dd07115343a0603dbea27db08dd00f9b5256ff
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy# Copyright (C) 1998, 1999 Internet Software Consortium.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy#
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#
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 Kennedy# SOFTWARE.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedysrcdir = @srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyVPATH = @srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedytop_srcdir = @top_srcdir@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy@BIND9_VERSION@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyCINCLUDES = -I${srcdir}/../isc/unix/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I${srcdir}/../isc/pthreads/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I${srcdir}/../isc/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I${srcdir}/include \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I${srcdir} \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy -I./include \
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy -I.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyCDEFINES =
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyCWARNINGS =
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyLIBS = @LIBS@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
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 Kennedy
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 Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedySUBDIRS = include
f38cb554a534c6df738be3f4d23327e69888e634John Wren KennedyTARGETS = include/dns/enumtype.h include/dns/enumclass.h \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy include/dns/rdatastruct.h timestamp
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy@BIND9_MAKE_RULES@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyversion.o: version.c
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" -c $<
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedylibdns.a: ${OBJS}
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy ${AR} cruv $@ ${OBJS}
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedytimestamp: libdns.a
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${RANLIB} libdns.a
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy touch timestamp
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyinstalldirs:
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy if [ ! -d ${libdir} ]; then \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy mkdir ${libdir} ; \
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy fi
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedyinstall:: timestamp installdirs
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${INSTALL_DATA} libdns.a ${libdir}
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
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 rm -f include/dns/rdatastruct.h
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyrdata.o: code.h
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyinclude/dns/enumtype.h: gen
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy ./gen -s ${srcdir} -t > $@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyinclude/dns/enumclass.h: gen
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ./gen -s ${srcdir} -c > $@
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
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
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedycode.h: gen
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ./gen -s ${srcdir} > code.h
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedygen: gen.c
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy ${CC} ${ALL_CFLAGS} -o $@ $? ${LIBS}
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedyrbtdb64.o: rbtdb.c
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy