Makefile.in revision c45abd11bb68005d8a5c56c14b16f4184c3e057d
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# Copyright (C) 1998, 1999 Internet Software Consortium.
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley#
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# Permission to use, copy, modify, and distribute this software for any
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# purpose with or without fee is hereby granted, provided that the above
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# copyright notice and this permission notice appear in all copies.
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley#
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
c46bcd7c6908745e19b0b1fe18a23bbaaee553edBob Halley# SOFTWARE.
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graffsrcdir = @srcdir@
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffVPATH = @srcdir@
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Grafftop_srcdir = @top_srcdir@
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffCINCLUDES = -I${srcdir}/../../lib/isc/unix/include \
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff -I${srcdir}/../../lib/isc/pthreads/include \
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff -I${srcdir}/../../lib/isc/include \
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff -I${srcdir}/../../lib/dns/include \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley -I../../lib/dns/include \
1ca02d14e46beb40bdc4720d5d7e49dcfd718754James Brister -I${srcdir}/../.. \
1ca02d14e46beb40bdc4720d5d7e49dcfd718754James Brister -I${srcdir}
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
b6026c656d89e9c6d578949fa97d422285445f13James BristerCDEFINES =
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffCWARNINGS =
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1ca02d14e46beb40bdc4720d5d7e49dcfd718754James Brister
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffDEPLIBS = ../../lib/dns/libdns.a \
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff ../../lib/isc/libisc.a
1ca02d14e46beb40bdc4720d5d7e49dcfd718754James Brister
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffLIBS = ${DEPLIBS} \
990fe8c3a9cb997d66e65b5aea9ab3555d63d574Bob Halley @LIBS@
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael GraffTARGETS = named
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
b6026c656d89e9c6d578949fa97d422285445f13James BristerOBJS = server.o udpclient.o tcpclient.o wire_debug.o wire_test.o\
b6026c656d89e9c6d578949fa97d422285445f13James Brister zone.o configctx.o confparser.o
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff@BIND9_MAKE_RULES@
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halleywire_test.o: ${srcdir}/../tests/wire_test.c
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley ${CC} -c -o wire_test.o -DNOMAIN ${ALL_CFLAGS} \
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley ${srcdir}/../tests/wire_test.c
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graffnamed: ${OBJS} ${DEPLIBS}
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff ${CC} -o $@ ${OBJS} ${LIBS}
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graff
1840745dd553b2ff5b114a03cde40a2a404aa559Michael Graffclean distclean::
55e5f033b3597a1e9f545d4232fb8ef3fac3f3deBob Halley rm -f ${TARGETS} confparser.c confparser_p.h
b6026c656d89e9c6d578949fa97d422285445f13James Brister
c65dad7d752fadf4ee763e2e5b42842087bf8596Michael Graffconfparser.c: ${srcdir}/confparser.y
c65dad7d752fadf4ee763e2e5b42842087bf8596Michael Graff ${YACC} -d ${srcdir}/confparser.y
b6026c656d89e9c6d578949fa97d422285445f13James Brister mv y.tab.c confparser.c
b6026c656d89e9c6d578949fa97d422285445f13James Brister mv y.tab.h confparser_p.h
b6026c656d89e9c6d578949fa97d422285445f13James Brister
b6026c656d89e9c6d578949fa97d422285445f13James Brister##confparser.c: confparser.y
b6026c656d89e9c6d578949fa97d422285445f13James Brister## ${YACC} -d confparser.y
b6026c656d89e9c6d578949fa97d422285445f13James Brister## rm -f confparser.c
b6026c656d89e9c6d578949fa97d422285445f13James Brister## sed -e '/^\#line/d' < y.tab.c > confparser.c
b6026c656d89e9c6d578949fa97d422285445f13James Brister## rm -f y.tab.c
b6026c656d89e9c6d578949fa97d422285445f13James Brister## chmod a-w confparser.c
b6026c656d89e9c6d578949fa97d422285445f13James Brister## mv y.tab.h confparser_p.h