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