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