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