Makefile.in 3.66 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.
Bob Halley's avatar
Bob Halley committed
15

Bob Halley's avatar
Bob Halley committed
16 17 18 19
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

Bob Halley's avatar
Bob Halley committed
20 21 22
CINCLUDES =	-I${srcdir}/../../lib/isc/unix/include \
		-I${srcdir}/../../lib/isc/pthreads/include \
		-I${srcdir}/../../lib/isc/include \
23 24 25
		-I${srcdir}/../../lib/dns/include \
		-I../../lib/dns/include

Bob Halley's avatar
Bob Halley committed
26 27 28
CDEFINES =
CWARNINGS =

Bob Halley's avatar
Bob Halley committed
29 30
DNSLIBS =	../../lib/dns/libdns.@A@
ISCLIBS =	../../lib/isc/libisc.@A@
31

Bob Halley's avatar
Bob Halley committed
32 33
DNSDEPLIBS =	../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../lib/isc/libisc.@A@
34 35

LIBS =		@LIBS@
Bob Halley's avatar
Bob Halley committed
36

37
SUBDIRS = master names rbt dst
Bob Halley's avatar
Bob Halley committed
38 39
TARGETS =	res_test \
		lex_test \
40
		name_test \
Bob Halley's avatar
Bob Halley committed
41
		sock_test \
Bob Halley's avatar
Bob Halley committed
42
		sym_test \
Bob Halley's avatar
Bob Halley committed
43
		task_test \
Bob Halley's avatar
Bob Halley committed
44
		shutdown_test \
45
		timer_test \
46 47 48
		rbt_test \
		rdata_test \
		rwlock_test \
Mark Andrews's avatar
Mark Andrews committed
49
		wire_test \
Bob Halley's avatar
Bob Halley committed
50
		master_test \
Mark Andrews's avatar
Mark Andrews committed
51
		db_test \
52
		compress_test \
Michael Graff's avatar
Michael Graff committed
53 54
		mempool_test \
		dispatch_test
Bob Halley's avatar
Bob Halley committed
55 56 57

@BIND9_MAKE_RULES@

Bob Halley's avatar
Bob Halley committed
58
res_test: res_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
59 60
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ res_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
61

62
lex_test: lex_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
63 64
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ lex_test.o \
	${ISCLIBS} ${LIBS}
65 66

name_test: name_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
67 68
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ name_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
69

70
sock_test: sock_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
71 72
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ sock_test.o \
	${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
73

74
sym_test: sym_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
75 76
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ sym_test.o \
	${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
77

78
task_test: task_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
79 80
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ task_test.o \
	${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
81

82
shutdown_test: shutdown_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
83 84
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ shutdown_test.o \
	${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
85

86
timer_test: timer_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
87 88
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ timer_test.o \
	${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
89

90
rbt_test: rbt_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
91 92
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ rbt_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
93

94
rdata_test: rdata_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
95 96
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ rdata_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
97

98
rwlock_test: rwlock_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
99 100
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ rwlock_test.o \
	${ISCLIBS} ${LIBS}
101

102 103
wire_test: wire_test.o printmsg.o ${ISCDEPLIBS} ${DNSDEPLIBS}
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ wire_test.o printmsg.o \
Bob Halley's avatar
Bob Halley committed
104
	${DNSLIBS} ${ISCLIBS} ${LIBS}
105

106
master_test: master_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
107 108
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ master_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
109

110
db_test: db_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
111 112
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ db_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
Mark Andrews's avatar
Mark Andrews committed
113

114
compress_test: compress_test.o ${ISCDEPLIBS} ${DNSDEPLIBS}
Bob Halley's avatar
Bob Halley committed
115 116
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ compress_test.o \
	${DNSLIBS} ${ISCLIBS} ${LIBS}
Bob Halley's avatar
Bob Halley committed
117

118
mempool_test: mempool_test.o ${ISCDEPLIBS}
Bob Halley's avatar
Bob Halley committed
119 120
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ mempool_test.o \
	${ISCLIBS} ${LIBS}
Mark Andrews's avatar
Mark Andrews committed
121

122 123
dispatch_test: dispatch_test.o printmsg.o ${ISCDEPLIBS} ${DNSDEPLIBS}
	${LIBTOOL} ${CC} ${CFLAGS} -o $@ dispatch_test.o printmsg.o \
Michael Graff's avatar
Michael Graff committed
124 125
	${DNSLIBS} ${ISCLIBS} ${LIBS}

126
clean distclean::
Bob Halley's avatar
Bob Halley committed
127
	rm -f ${TARGETS}
Bob Halley's avatar
Bob Halley committed
128
	rm -f t_journal