1# $NetBSD: Makefile,v 1.38 2016/01/23 21:22:48 christos Exp $ 2 3NOMAN= # defined 4 5.include <bsd.own.mk> 6 7TESTSDIR= ${TESTSBASE}/kernel 8 9TESTS_SUBDIRS= kqueue 10TESTS_C= t_lock 11TESTS_C+= t_lockf 12TESTS_C+= t_pty 13TESTS_C+= t_mqueue 14TESTS_C+= t_sysv 15TESTS_C+= t_subr_prf 16TESTS_C+= t_kauth_pr_47598 17TESTS_C+= t_sysctl 18 19TESTS_SH= t_umount 20TESTS_SH+= t_umountstress 21TESTS_SH+= t_ps_strings 22 23BINDIR= ${TESTSDIR} 24PROGS= h_ps_strings1 25PROGS+= h_ps_strings2 26 27LDADD.t_mqueue+= -lrt 28 29 30.if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE) 31TESTS_SUBDIRS+= tty 32 33TESTS_C+= t_extattrctl 34TESTS_C+= t_filedesc 35TESTS_C+= t_rnd 36LDADD.t_extattrctl+= -lrumpvfs -lrump -lrumpuser 37LDADD.t_extattrctl+= -lrump -lpthread 38LDADD.t_filedesc+= ${LDADD.t_rnd} 39LDADD.t_rnd+= -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser 40LDADD.t_rnd+= -lrump -lpthread 41CPPFLAGS+= -D_KERNTYPES 42 43.endif 44 45 46.PATH: ${NETBSDSRCDIR}/sys/kern 47TESTS_C+= t_extent 48SRCS.t_extent= t_extent.c subr_extent.c 49CPPFLAGS.t_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE 50CPPFLAGS.subr_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE 51 52t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c 53 ${HOST_SH} ${.ALLSRC} ${.TARGET} 54CPPFLAGS.t_subr_prf.c= -Wno-pointer-sign # XXX platform vs kernel SHA2 55 56CLEANFILES+= t_subr_prf.c 57 58.include <bsd.test.mk> 59