Makefile revision 1.9
11.9Skamil#	$NetBSD: Makefile,v 1.9 2019/08/17 04:04:28 kamil Exp $
21.1Spooka#
31.1Spooka
41.7Schristos.include <bsd.init.mk>
51.7Schristos
61.1SpookaTESTSDIR=	${TESTSBASE}/rump/modautoload
71.6Schristos
81.1SpookaTESTS_C=	t_modautoload
91.8SchristosPAXCTL_FLAGS=	+ma
101.1Spooka
111.3SpgoyetteSRCS.t_modautoload+=	t_modautoload.c
121.3Spgoyette
131.1Spooka# Note: we link the rump kernel into the application to make this work
141.1Spooka# on amd64.  This is the reason we keep this test in its own
151.1Spooka# subdirectory -- otherwise the LDADD lines would get a little hairy.
161.1SpookaLDFLAGS+=	-Wl,-E
171.1SpookaLDADD+=		-Wl,--whole-archive	${DESTDIR}/usr/lib/librumpvfs.a	\
181.1Spooka					${DESTDIR}/usr/lib/librump.a	\
191.1Spooka		-Wl,--no-whole-archive
201.1SpookaLDADD+=		-lrumpuser -lpthread
211.4SchristosDPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
221.1Spooka
231.1SpookaWARNS=	4
241.1Spooka
251.3Spgoyette# To include a rump version of sysctlbyname()
261.3Spgoyette
271.3Spgoyette.PATH:		${NETBSDSRCDIR}/lib/libc/gen
281.3SpgoyetteSRCS.t_modautoload+=		sysctlbyname.c
291.3SpgoyetteSRCS.t_modautoload+=		sysctlgetmibinfo.c
301.3SpgoyetteCPPFLAGS+=	-DRUMP_ACTION
311.3Spgoyette
321.9SkamilSANITIZER_RENAME_CLASSES+=		t_modautoload
331.9SkamilSANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
341.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
351.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
361.9Skamil
371.1Spooka.include <bsd.test.mk>
38