Makefile revision 1.12
11.12Schristos#	$NetBSD: Makefile,v 1.12 2020/05/26 18:52:29 christos 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.12Schristos.if ${MACHINE} == "alpha"
181.12SchristosLDFLAGS+=	-Wl,--no-relax
191.12Schristos.endif
201.10SchristosLDADD+= \
211.11Schristos    -Wl,--whole-archive -Wl,-Bstatic \
221.11Schristos	-lrumpvfs_nofifofs -lrumpvfs -lrump \
231.11Schristos    -Wl,-Bdynamic -Wl,--no-whole-archive
241.10Schristos
251.1SpookaLDADD+=		-lrumpuser -lpthread
261.4SchristosDPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
271.1Spooka
281.1SpookaWARNS=	4
291.1Spooka
301.3Spgoyette# To include a rump version of sysctlbyname()
311.3Spgoyette
321.3Spgoyette.PATH:		${NETBSDSRCDIR}/lib/libc/gen
331.3SpgoyetteSRCS.t_modautoload+=		sysctlbyname.c
341.3SpgoyetteSRCS.t_modautoload+=		sysctlgetmibinfo.c
351.3SpgoyetteCPPFLAGS+=	-DRUMP_ACTION
361.3Spgoyette
371.9SkamilSANITIZER_RENAME_CLASSES+=		t_modautoload
381.9SkamilSANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
391.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
401.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
411.9Skamil
421.1Spooka.include <bsd.test.mk>
43