Makefile.in 5.89 KB
Newer Older
1
# Copyright (C) 2011-2016  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2 3 4 5 6 7 8 9 10 11 12 13
#
# Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC 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.
14

Mark Andrews's avatar
Mark Andrews committed
15
# $Id$
16 17 18 19 20 21 22 23 24

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

# Attempt to disable parallel processing.
.NOTPARALLEL:
.NO_PARALLEL:

25
VERSION=@BIND9_VERSION@
26 27 28

@BIND9_MAKE_INCLUDES@

29
CINCLUDES =	-I. -Iinclude ${ISC_INCLUDES} @ISC_OPENSSL_INC@
30 31
CDEFINES =	-DTESTS="\"${top_builddir}/lib/isc/tests/\""

32
ISCLIBS =	../libisc.@A@ @ISC_OPENSSL_LIBS@
33 34 35 36 37
ISCDEPLIBS =	../libisc.@A@

LIBS =		@LIBS@ @ATFLIBS@

OBJS =		isctest.@O@
38
SRCS =		isctest.c taskpool_test.c socket_test.c hash_test.c \
39
		lex_test.c radix_test.c random_test.c \
Evan Hunt's avatar
Evan Hunt committed
40
		sockaddr_test.c symtab_test.c task_test.c queue_test.c \
41
		parse_test.c pool_test.c print_test.c regex_test.c \
42
		socket_test.c safe_test.c time_test.c aes_test.c \
43
		file_test.c buffer_test.c counter_test.c mem_test.c \
44
		result_test.c ht_test.c
45 46

SUBDIRS =
47
TARGETS =	taskpool_test@EXEEXT@ socket_test@EXEEXT@ hash_test@EXEEXT@ \
48
		lex_test@EXEEXT@ radix_test@EXEEXT@ random_test@EXEEXT@ \
Evan Hunt's avatar
Evan Hunt committed
49
		sockaddr_test@EXEEXT@ symtab_test@EXEEXT@ task_test@EXEEXT@ \
50
		queue_test@EXEEXT@ parse_test@EXEEXT@ pool_test@EXEEXT@ \
51
		print_test@EXEEXT@ regex_test@EXEEXT@ socket_test@EXEEXT@ \
52
		safe_test@EXEEXT@ time_test@EXEEXT@ aes_test@EXEEXT@ \
53
		file_test@EXEEXT@ buffer_test@EXEEXT@ counter_test@EXEEXT@ \
54
		mem_test@EXEEXT@ result_test@EXEEXT@ ht_test@EXEEXT@
55 56 57 58 59

@BIND9_MAKE_RULES@

taskpool_test@EXEEXT@: taskpool_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
60
			taskpool_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
61

62 63
task_test@EXEEXT@: task_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
64
			task_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
65

66 67
socket_test@EXEEXT@: socket_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
68
			socket_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
69

70 71
hash_test@EXEEXT@: hash_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
72
			hash_test.@O@ ${ISCLIBS} ${LIBS}
73

74 75
lex_test@EXEEXT@: lex_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
76
			lex_test.@O@ ${ISCLIBS} ${LIBS}
77

78 79
queue_test@EXEEXT@: queue_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
80
			queue_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
81

82 83 84 85
radix_test@EXEEXT@: radix_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			radix_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}

86 87 88 89
random_test@EXEEXT@: random_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			random_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}

90 91
symtab_test@EXEEXT@: symtab_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
92
			symtab_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
93

94 95
parse_test@EXEEXT@: parse_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
96
			parse_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
97

Evan Hunt's avatar
Evan Hunt committed
98 99
sockaddr_test@EXEEXT@: sockaddr_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
100
			sockaddr_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
Evan Hunt's avatar
Evan Hunt committed
101

102 103
print_test.@O@:	${top_srcdir}/lib/isc/print.c
print_test@EXEEXT@: print_test.@O@ ${ISCDEPLIBS}
104 105 106
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			print_test.@O@ ${ISCLIBS} ${LIBS}

107 108
pool_test@EXEEXT@: pool_test.@O@ isctest.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
109
			pool_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
110

111 112
regex_test@EXEEXT@: regex_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
113
			regex_test.@O@ ${ISCLIBS} ${LIBS}
114

Evan Hunt's avatar
Evan Hunt committed
115 116
safe_test@EXEEXT@: safe_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
117
			safe_test.@O@ ${ISCLIBS} ${LIBS}
Evan Hunt's avatar
Evan Hunt committed
118

119 120
time_test@EXEEXT@: time_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
121
			time_test.@O@ ${ISCLIBS} ${LIBS}
122

123 124 125 126
aes_test@EXEEXT@: aes_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			aes_test.@O@ ${ISCLIBS} ${LIBS}

127 128 129 130
file_test@EXEEXT@: file_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			file_test.@O@ ${ISCLIBS} ${LIBS}

131 132 133 134
buffer_test@EXEEXT@: buffer_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			buffer_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}

135 136 137 138
counter_test@EXEEXT@: counter_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			counter_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}

139 140 141 142
mem_test@EXEEXT@: mem_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			mem_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}

143 144 145 146
result_test@EXEEXT@: result_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			result_test.@O@ ${ISCLIBS} ${LIBS}

147 148 149 150
ht_test@EXEEXT@: ht_test.@O@ ${ISCDEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
			ht_test.@O@ ${ISCLIBS} ${LIBS}

151 152 153
unit::
	sh ${top_srcdir}/unit/unittest.sh

154 155
clean distclean::
	rm -f ${TARGETS}
Evan Hunt's avatar
Evan Hunt committed
156
	rm -f atf.out