Makefile revision 1.11
1#	$NetBSD: Makefile,v 1.11 2020/05/16 12:54:27 christos Exp $
2#
3
4.include <bsd.init.mk>
5
6TESTSDIR=	${TESTSBASE}/rump/modautoload
7
8TESTS_C=	t_modautoload
9PAXCTL_FLAGS=	+ma
10
11SRCS.t_modautoload+=	t_modautoload.c
12
13# Note: we link the rump kernel into the application to make this work
14# on amd64.  This is the reason we keep this test in its own
15# subdirectory -- otherwise the LDADD lines would get a little hairy.
16LDFLAGS+=	-Wl,-E
17LDADD+= \
18    -Wl,--whole-archive -Wl,-Bstatic \
19	-lrumpvfs_nofifofs -lrumpvfs -lrump \
20    -Wl,-Bdynamic -Wl,--no-whole-archive
21
22LDADD+=		-lrumpuser -lpthread
23DPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
24
25WARNS=	4
26
27# To include a rump version of sysctlbyname()
28
29.PATH:		${NETBSDSRCDIR}/lib/libc/gen
30SRCS.t_modautoload+=		sysctlbyname.c
31SRCS.t_modautoload+=		sysctlgetmibinfo.c
32CPPFLAGS+=	-DRUMP_ACTION
33
34SANITIZER_RENAME_CLASSES+=		t_modautoload
35SANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
36SANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
37SANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
38
39.include <bsd.test.mk>
40