1 # $NetBSD: bsd.test.mk,v 1.6 2008/03/02 11:31:42 jmmv Exp $
13 . for _T in
${TESTS_C}
14 BINDIR.
${_T}= ${TESTSDIR}
20 .if defined
(TESTS_CXX
)
21 PROGS_CXX
+= ${TESTS_CXX}
22 LDADD
+= -latf-c
++ -latf-c
23 . for _T in
${TESTS_CXX}
24 BINDIR.
${_T}= ${TESTSDIR}
32 . for _T in
${TESTS_SH}
34 SCRIPTSDIR_
${_T}= ${TESTSDIR}
37 CLEANFILES
+= ${_T} ${_T}.tmp
39 TESTS_SH_SRC_
${_T}?
= ${_T}.sh
40 ${_T}: ${TESTS_SH_SRC_
${_T}} atf-compile-cookie
42 ${TOOL_ATF_COMPILE} -o
${.TARGET
}.tmp
${.ALLSRC
}
43 mv
${.TARGET
}.tmp
${.TARGET
}
47 CLEANFILES
+= atf-compile-cookie
48 .if
${USETOOLS} == "yes"
49 atf-compile-cookie
: ${TOOL_ATF_COMPILE}
50 touch atf-compile-cookie
53 test -f atf-compile-cookie || touch atf-compile-cookie
56 .if
!defined
(NOATFFILE
)
58 FILESDIR_Atffile
= ${TESTSDIR}
59 .
include <bsd.files.mk
>
62 .if
!empty
(SCRIPTS
) ||
!empty
(PROGS
) ||
!empty
(PROGS_CXX
)
63 .
include <bsd.prog.mk
>