Makefile.in 1.82 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

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

Bob Halley's avatar
update  
Bob Halley committed
20 21
@BIND9_VERSION@

22 23
@BIND9_INCLUDES@

Bob Halley's avatar
Bob Halley committed
24
CINCLUDES =	-I${srcdir}/include -I${srcdir}/unix/include \
25
		${DNS_INCLUDES} ${ISC_INCLUDES} ${OMAPI_INCLUDES}
26

27
CDEFINES =	
28 29
CWARNINGS =

Bob Halley's avatar
Bob Halley committed
30
DEPLIBS =	../../lib/dns/libdns.@A@ \
31
		../../lib/omapi/libomapi.@A@ \
Bob Halley's avatar
Bob Halley committed
32
		../../lib/isc/libisc.@A@
33

34
LIBS =		${DEPLIBS} \
35
		@LIBS@
36

Bob Halley's avatar
Bob Halley committed
37 38
SUBDIRS =	unix

39 40
TARGETS =	named

41
OBJS =		client.@O@ interfacemgr.@O@ listenlist.@O@ \
42
		log.@O@ main.@O@ notify.@O@ omapi.@O@ \
43
		query.@O@ server.@O@ update.@O@ xfrout.@O@
44

Bob Halley's avatar
Bob Halley committed
45 46
UOBJS =		unix/os.@O@

47
SRCS =		client.c interfacemgr.c listenlist.c \
48
		log.c main.c notify.c omapi.c \
49
		query.c server.c update.c xfrout.c
Bob Halley's avatar
Bob Halley committed
50

51 52
@BIND9_MAKE_RULES@

53
main.@O@: main.c
54
	${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" -c ${srcdir}/main.c
Bob Halley's avatar
update  
Bob Halley committed
55

56 57
printmsg.@O@: ${srcdir}/../tests/printmsg.c
	${CC} -c -o printmsg.@O@ ${ALL_CFLAGS} -I${srcdir}/../tests \
58
		${srcdir}/../tests/printmsg.c
59

Bob Halley's avatar
Bob Halley committed
60 61
named: ${OBJS} ${UOBJS} ${DEPLIBS}
	${LIBTOOL} ${CC} -o $@ ${OBJS} ${UOBJS} ${LIBS}
62 63

clean distclean::
64
	rm -f ${TARGETS}