Makefile revision 1.12
1#	$NetBSD: Makefile,v 1.12 2020/05/26 18:52:29 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
17.if ${MACHINE} == "alpha"
18LDFLAGS+=	-Wl,--no-relax
19.endif
20LDADD+= \
21    -Wl,--whole-archive -Wl,-Bstatic \
22	-lrumpvfs_nofifofs -lrumpvfs -lrump \
23    -Wl,-Bdynamic -Wl,--no-whole-archive
24
25LDADD+=		-lrumpuser -lpthread
26DPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
27
28WARNS=	4
29
30# To include a rump version of sysctlbyname()
31
32.PATH:		${NETBSDSRCDIR}/lib/libc/gen
33SRCS.t_modautoload+=		sysctlbyname.c
34SRCS.t_modautoload+=		sysctlgetmibinfo.c
35CPPFLAGS+=	-DRUMP_ACTION
36
37SANITIZER_RENAME_CLASSES+=		t_modautoload
38SANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
39SANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
40SANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
41
42.include <bsd.test.mk>
43