1 # $NetBSD: Makefile,v 1.8 2016/10/14 16:02:35 christos Exp $ 2 # 3 4 .include <bsd.init.mk> 5 6 TESTSDIR= ${TESTSBASE}/rump/modautoload 7 8 TESTS_C= t_modautoload 9 PAXCTL_FLAGS= +ma 10 11 SRCS.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. 16 LDFLAGS+= -Wl,-E 17 LDADD+= -Wl,--whole-archive ${DESTDIR}/usr/lib/librumpvfs.a \ 18 ${DESTDIR}/usr/lib/librump.a \ 19 -Wl,--no-whole-archive 20 LDADD+= -lrumpuser -lpthread 21 DPADD+= ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER} 22 23 WARNS= 4 24 25 # To include a rump version of sysctlbyname() 26 27 .PATH: ${NETBSDSRCDIR}/lib/libc/gen 28 SRCS.t_modautoload+= sysctlbyname.c 29 SRCS.t_modautoload+= sysctlgetmibinfo.c 30 CPPFLAGS+= -DRUMP_ACTION 31 32 .include <bsd.test.mk> 33