summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 6a2bb907a915..5df392d9e499 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2014/08/10 16:44:37 tls Exp $
+# $NetBSD: Makefile,v 1.39 2016/02/15 14:59:38 christos Exp $
NOMAN= # defined
@@ -27,7 +27,7 @@ PROGS+= h_ps_strings2
LDADD.t_mqueue+= -lrt
-.if (${MKRUMP} != "no")
+.if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
TESTS_SUBDIRS+= tty
TESTS_C+= t_extattrctl
@@ -38,6 +38,7 @@ LDADD.t_extattrctl+= -lrump -lpthread
LDADD.t_filedesc+= ${LDADD.t_rnd}
LDADD.t_rnd+= -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser
LDADD.t_rnd+= -lrump -lpthread
+CPPFLAGS+= -D_KERNTYPES
.endif
@@ -45,8 +46,8 @@ LDADD.t_rnd+= -lrump -lpthread
.PATH: ${NETBSDSRCDIR}/sys/kern
TESTS_C+= t_extent
SRCS.t_extent= t_extent.c subr_extent.c
-CPPFLAGS.t_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE
-CPPFLAGS.subr_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE
+CPPFLAGS.t_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
+CPPFLAGS.subr_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c
${HOST_SH} ${.ALLSRC} ${.TARGET}