Makefile revision 1.11
11.11Schristos#	$NetBSD: Makefile,v 1.11 2020/05/16 12:54:27 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.11Schristos    -Wl,--whole-archive -Wl,-Bstatic \
191.11Schristos	-lrumpvfs_nofifofs -lrumpvfs -lrump \
201.11Schristos    -Wl,-Bdynamic -Wl,--no-whole-archive
211.10Schristos
221.1SpookaLDADD+=		-lrumpuser -lpthread
231.4SchristosDPADD+=		${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
241.1Spooka
251.1SpookaWARNS=	4
261.1Spooka
271.3Spgoyette# To include a rump version of sysctlbyname()
281.3Spgoyette
291.3Spgoyette.PATH:		${NETBSDSRCDIR}/lib/libc/gen
301.3SpgoyetteSRCS.t_modautoload+=		sysctlbyname.c
311.3SpgoyetteSRCS.t_modautoload+=		sysctlgetmibinfo.c
321.3SpgoyetteCPPFLAGS+=	-DRUMP_ACTION
331.3Spgoyette
341.9SkamilSANITIZER_RENAME_CLASSES+=		t_modautoload
351.9SkamilSANITIZER_RENAME_FILES.t_modautoload+=	${SRCS.t_modautoload}
361.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlbyname
371.9SkamilSANITIZER_RENAME_SYMBOL.t_modautoload+=	sysctlgetmibinfo
381.9Skamil
391.1Spooka.include <bsd.test.mk>
40