Makefile.in 1.89 KB
Newer Older
Bob Halley's avatar
Bob Halley committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright (C) 1998, 1999  Internet Software Consortium.
# 
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# 
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
15 16 17 18 19 20 21 22 23

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

CINCLUDES =	-I${srcdir}/../../lib/isc/unix/include \
		-I${srcdir}/../../lib/isc/pthreads/include \
		-I${srcdir}/../../lib/isc/include \
		-I${srcdir}/../../lib/dns/include \
24
		-I../../lib/dns/include \
25 26
		-I${srcdir}/../.. \
		-I${srcdir}
27

28
CDEFINES =	
29 30
CWARNINGS =

31

32 33
DEPLIBS =	../../lib/dns/libdns.a \
		../../lib/isc/libisc.a
34

35
LIBS =		${DEPLIBS} \
36
		@LIBS@
37 38 39

TARGETS =	named

40
OBJS =		server.o udpclient.o tcpclient.o wire_test.o \
41
		zone.o configctx.o confparser.o
42 43 44

@BIND9_MAKE_RULES@

45 46 47
wire_test.o: ${srcdir}/../tests/wire_test.c
	${CC} -c -o wire_test.o -DNOMAIN ${ALL_CFLAGS} \
		${srcdir}/../tests/wire_test.c
48 49 50 51 52

named: ${OBJS} ${DEPLIBS}
	${CC} -o $@ ${OBJS} ${LIBS}

clean distclean::
53
	rm -f ${TARGETS} confparser.c confparser_p.h
54

55 56
confparser.c: ${srcdir}/confparser.y
	${YACC} -d ${srcdir}/confparser.y
57 58 59 60 61 62 63 64 65 66
	mv y.tab.c confparser.c
	mv y.tab.h confparser_p.h

##confparser.c: confparser.y
##	${YACC} -d confparser.y
##	rm -f confparser.c
##	sed -e '/^\#line/d' < y.tab.c > confparser.c
##	rm -f y.tab.c
##	chmod a-w confparser.c
##	mv y.tab.h confparser_p.h