Makefile.in revision ff64dc5d7f8072239e7c760e56551ad3c232da6f
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# Copyright (C) 1998, 1999 Internet Software Consortium.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Permission to use, copy, modify, and distribute this software for any
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# purpose with or without fee is hereby granted, provided that the above
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# copyright notice and this permission notice appear in all copies.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# SOFTWARE.
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrencesrcdir = @srcdir@
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark AndrewsVPATH = @srcdir@
bff64bf12b58a6f80e740e94f2e42a32df18113aEvan Hunttop_srcdir = @top_srcdir@
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
7c74e180c206e6ed99e8beb820da5f399d845c3eDavid LawrenceCINCLUDES = -I${srcdir}/../../lib/isc/unix/include \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -I${srcdir}/../../lib/isc/pthreads/include \
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson -I${srcdir}/../../lib/isc/include \
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence -I${srcdir}/../../lib/dns/include \
03e200df5dc283f24a6a349f0b31d3eab26da893Mark Andrews -I../../lib/dns/include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I${srcdir}/../.. \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I${srcdir}
63dd46733010bb9622810faa17d88c3e3c28b730Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCDEFINES =
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCWARNINGS =
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark AndrewsDEPLIBS = ../../lib/dns/libdns.a \
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews ../../lib/isc/libisc.a
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark AndrewsLIBS = ${DEPLIBS} \
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews @LIBS@
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark AndrewsTARGETS = named
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark AndrewsOBJS = server.o udpclient.o tcpclient.o wire_test.o \
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews zone.o configctx.o confparser.o interfacemgr.o
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews@BIND9_MAKE_RULES@
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews
914eeb33149a0008e26741d9e7d89dcd6f8b6d0bMark Andrewswire_test.o: ${srcdir}/../tests/wire_test.c
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ${CC} -c -o wire_test.o -DNOMAIN ${ALL_CFLAGS} \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews ${srcdir}/../tests/wire_test.c
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffnamed: ${OBJS} ${DEPLIBS}
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ${CC} -o $@ ${OBJS} ${LIBS}
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellingtonclean distclean::
5b7abbef511cea0b568be0bc8d5b3120a0b9034dEvan Hunt rm -f ${TARGETS} confparser.c confparser_p.h
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrewsconfparser.c: ${srcdir}/confparser.y
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews ${YACC} -d ${srcdir}/confparser.y
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews mv y.tab.c confparser.c
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews mv y.tab.h confparser_p.h
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews##confparser.c: confparser.y
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## ${YACC} -d confparser.y
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## rm -f confparser.c
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## sed -e '/^\#line/d' < y.tab.c > confparser.c
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## rm -f y.tab.c
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## chmod a-w confparser.c
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews## mv y.tab.h confparser_p.h
b123b265e3a3d9b72a14230b6517e0f6fdb5c5b5Mark Andrews