Makefile revision 1.4
1#	$NetBSD: Makefile,v 1.4 2016/08/20 17:06:18 christos Exp $
2#
3
4TESTSDIR=	${TESTSBASE}/rump/modautoload
5
6TESTS_C=	t_modautoload
7
8SRCS.t_modautoload+=	t_modautoload.c
9
10# Note: we link the rump kernel into the application to make this work
11# on amd64.  This is the reason we keep this test in its own
12# subdirectory -- otherwise the LDADD lines would get a little hairy.
13LDFLAGS+=	-Wl,-E
14LDADD+=		-Wl,--whole-archive	${DESTDIR}/usr/lib/librumpvfs.a	\
15					${DESTDIR}/usr/lib/librump.a	\
16		-Wl,--no-whole-archive
17LDADD+=		-lrumpuser -lpthread
18DPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
19
20WARNS=	4
21
22# To include a rump version of sysctlbyname()
23
24.PATH:		${NETBSDSRCDIR}/lib/libc/gen
25SRCS.t_modautoload+=		sysctlbyname.c
26SRCS.t_modautoload+=		sysctlgetmibinfo.c
27CPPFLAGS+=	-DRUMP_ACTION
28
29.include <bsd.test.mk>
30