Makefile.in revision c45abd11bb68005d8a5c56c14b16f4184c3e057d
4c1132f34493327abc632196f5876a89aa573687Bob Halley# Copyright (C) 1998, 1999 Internet Software Consortium.
4c1132f34493327abc632196f5876a89aa573687Bob Halley#
4c1132f34493327abc632196f5876a89aa573687Bob Halley# Permission to use, copy, modify, and distribute this software for any
4c1132f34493327abc632196f5876a89aa573687Bob Halley# purpose with or without fee is hereby granted, provided that the above
4c1132f34493327abc632196f5876a89aa573687Bob Halley# copyright notice and this permission notice appear in all copies.
4c1132f34493327abc632196f5876a89aa573687Bob Halley#
4c1132f34493327abc632196f5876a89aa573687Bob Halley# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
4c1132f34493327abc632196f5876a89aa573687Bob Halley# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
4c1132f34493327abc632196f5876a89aa573687Bob Halley# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
4c1132f34493327abc632196f5876a89aa573687Bob Halley# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
4c1132f34493327abc632196f5876a89aa573687Bob Halley# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
4c1132f34493327abc632196f5876a89aa573687Bob Halley# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
4c1132f34493327abc632196f5876a89aa573687Bob Halley# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
4c1132f34493327abc632196f5876a89aa573687Bob Halley# SOFTWARE.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
f41f183f628a148860a6d1f0070208cddd45b0c6Bob Halleysrcdir = @srcdir@
f41f183f628a148860a6d1f0070208cddd45b0c6Bob HalleyVPATH = @srcdir@
f41f183f628a148860a6d1f0070208cddd45b0c6Bob Halleytop_srcdir = @top_srcdir@
f41f183f628a148860a6d1f0070208cddd45b0c6Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley@BIND9_VERSION@
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCINCLUDES = -I${srcdir}/../isc/unix/include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I${srcdir}/../isc/pthreads/include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I${srcdir}/../isc/include \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley -I${srcdir}/include \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley -I${srcdir} \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley -I./include \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley -I.
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCDEFINES =
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCWARNINGS =
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
c45abd11bb68005d8a5c56c14b16f4184c3e057dMichael GraffLIBS = @LIBS@
c45abd11bb68005d8a5c56c14b16f4184c3e057dMichael Graff
a685d9c3b608eb768d237f20e8e8b1c5d3902146David Lawrence# Alphabetically
a685d9c3b608eb768d237f20e8e8b1c5d3902146David LawrenceOBJS = callbacks.o compress.o db.o dbiterator.o dbtable.o \
c45abd11bb68005d8a5c56c14b16f4184c3e057dMichael Graff master.o message.o name.o rbt.o rbtdb.o rbtdb64.o \
a685d9c3b608eb768d237f20e8e8b1c5d3902146David Lawrence rdata.o rdatalist.o rdataset.o rdatasetiter.o rdataslab.o \
d7eef25fbeccafffef76596fcfcf09809235cafcBob Halley result.o version.o
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
fd350b6d2a0a06d8f46d62993a5f346be667ed22Bob HalleySUBDIRS = include
6d7585b3e948dd31bf78321d83ac0e024f44a71bMark AndrewsTARGETS = include/dns/enumtype.h include/dns/enumclass.h timestamp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley@BIND9_MAKE_RULES@
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyversion.o: version.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" -c $<
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibdns.a: ${OBJS}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ${AR} cruv $@ ${OBJS}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytimestamp: libdns.a
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ${RANLIB} libdns.a
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley touch timestamp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyinstalldirs:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if [ ! -d ${libdir} ]; then \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mkdir ${libdir} ; \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyinstall:: timestamp installdirs
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ${INSTALL_DATA} libdns.a ${libdir}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
4880900113e4d0f17884f3fbdbf4c302e3f9ea91Bob Halleyclean distclean::
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f libdns.a timestamp
c8a42d6d81ff2fd9ad7fac94d4b85323554493c0Bob Halley rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsrdata.o: code.h
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
6d7585b3e948dd31bf78321d83ac0e024f44a71bMark Andrewsinclude/dns/enumtype.h: gen
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley ./gen -s ${srcdir} -t > $@
6d7585b3e948dd31bf78321d83ac0e024f44a71bMark Andrews
6d7585b3e948dd31bf78321d83ac0e024f44a71bMark Andrewsinclude/dns/enumclass.h: gen
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley ./gen -s ${srcdir} -c > $@
6d7585b3e948dd31bf78321d83ac0e024f44a71bMark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewscode.h: gen
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley ./gen -s ${srcdir} > code.h
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsgen: gen.c
c45abd11bb68005d8a5c56c14b16f4184c3e057dMichael Graff ${CC} ${ALL_CFLAGS} -o $@ $? ${LIBS}
bb556a9bf3a15c7160fa4f1b71773ce12b1bedf6Bob Halley
bb556a9bf3a15c7160fa4f1b71773ce12b1bedf6Bob Halleyrbtdb64.o: rbtdb.c