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