xref: /netbsd-src/tests/sys/uvm/Makefile (revision 07acf3c0966b983460b8c661d724f75f41e8ca5e)
1# $NetBSD: Makefile,v 1.1 2016/12/19 12:21:29 cherry Exp $
2#
3
4WARNS?=6
5.include <bsd.own.mk>
6
7TESTSDIR=	${TESTSBASE}/sys/uvm
8CPPFLAGS+=	-I${NETBSDSRCDIR}/sys -I${.CURDIR}/ -D_TEST -g
9
10# Depend on the kernel source files too
11DPSRCS=		${NETBSDSRCDIR}/sys/uvm/uvm_physseg.[ch]
12
13.PATH:		${NETBSDSRCDIR}/sys/kern
14TESTS_C+=	t_uvm_physseg
15SRCS.t_uvm_physseg+=	t_uvm_physseg.c subr_extent.c
16CPPFLAGS.t_uvm_physseg.c= -D_EXTENT_TESTING -D__POOL_EXPOSE -DDIAGNOSTIC
17CPPFLAGS.subr_extent.c=	  -D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES -DDIAGNOSTIC
18
19TESTS_C+=       t_uvm_physseg_load
20SRCS.t_uvm_physseg_load+=       t_uvm_physseg_load.c subr_extent.c
21CPPFLAGS.t_uvm_physseg_load.c= -D_EXTENT_TESTING -D__POOL_EXPOSE -DDIAGNOSTIC
22
23.include <bsd.dep.mk>
24.include <bsd.test.mk>
25