Makefile revision 1.10
11.10Schristos#	$NetBSD: Makefile,v 1.10 2020/05/16 12:44:42 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.10SchristosLDADD+= \
181.10Schristos    -Wl,--whole-archive \
191.10Schristos    ${DESTDIR}/usr/lib/librumpvfs_nofifofs.a \
201.10Schristos    ${DESTDIR}/usr/lib/librumpvfs.a \
211.10Schristos    ${DESTDIR}/usr/lib/librump.a \
221.10Schristos    -Wl,--no-whole-archive
231.10Schristos
241.1SpookaLDADD+=		-lrumpuser -lpthread
251.4SchristosDPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
261.1Spooka
271.1SpookaWARNS=	4
281.1Spooka
291.3Spgoyette# To include a rump version of sysctlbyname()
301.3Spgoyette
311.3Spgoyette.PATH:		${NETBSDSRCDIR}/lib/libc/gen
321.3SpgoyetteSRCS.t_modautoload+=		sysctlbyname.c
331.3SpgoyetteSRCS.t_modautoload+=		sysctlgetmibinfo.c
341.3SpgoyetteCPPFLAGS+=	-DRUMP_ACTION
351.3Spgoyette
361.9SkamilSANITIZER_RENAME_CLASSES+=		t_modautoload
371.9SkamilSANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
381.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
391.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
401.9Skamil
411.1Spooka.include <bsd.test.mk>
42