1 # $NetBSD: Makefile,v 1.11 2020/05/16 12:54:27 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+= \ 18 -Wl,--whole-archive -Wl,-Bstatic \ 19 -lrumpvfs_nofifofs -lrumpvfs -lrump \ 20 -Wl,-Bdynamic -Wl,--no-whole-archive 21 22 LDADD+= -lrumpuser -lpthread 23 DPADD+= ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER} 24 25 WARNS= 4 26 27 # To include a rump version of sysctlbyname() 28 29 .PATH: ${NETBSDSRCDIR}/lib/libc/gen 30 SRCS.t_modautoload+= sysctlbyname.c 31 SRCS.t_modautoload+= sysctlgetmibinfo.c 32 CPPFLAGS+= -DRUMP_ACTION 33 34 SANITIZER_RENAME_CLASSES+= t_modautoload 35 SANITIZER_RENAME_FILES.t_modautoload+= ${SRCS.t_modautoload} 36 SANITIZER_RENAME_SYMBOL.t_modautoload+= sysctlbyname 37 SANITIZER_RENAME_SYMBOL.t_modautoload+= sysctlgetmibinfo 38 39 .include <bsd.test.mk> 40