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