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