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