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