Home | History | Annotate | Line # | Download | only in sys
      1 # $NetBSD: Makefile,v 1.17 2024/11/01 18:35:12 riastradh Exp $
      2 
      3 NOMAN=		# defined
      4 
      5 .include <bsd.own.mk>
      6 
      7 TESTSDIR=		${TESTSBASE}/include/sys
      8 
      9 TESTS_C+=		t_bitops
     10 TESTS_C+=		t_bootblock
     11 TESTS_C+=		t_cdefs
     12 TESTS_C+=		t_list
     13 TESTS_C+=		t_pslist
     14 TESTS_C+=		t_tree
     15 TESTS_C+=		t_types
     16 
     17 COPTS.t_bitops.c+=	-fno-builtin-ffs
     18 COPTS.t_bitops.c+=	-fno-builtin-ffsl
     19 COPTS.t_bitops.c+=	-fno-builtin-ffsll
     20 
     21 # NULL + 0 arithmetic raises LLVM UBSan warnings, specially in sys/pslist.h
     22 # in the type-safe macros _PSLIST_VALIDATE_PTRS and _PSLIST_VALIDATE_CONTAINER.
     23 # See also src/sys/rump/Makefile.rump
     24 .if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
     25 COPTS.t_pslist.c+=	${${ACTIVE_CC} == "clang":? -fno-delete-null-pointer-checks :}
     26 .endif
     27 
     28 CPPFLAGS.t_pslist.c+=	-I${NETBSDSRCDIR}/sys
     29 LDADD.t_bitops+=	-lm
     30 
     31 .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
     32 TESTS_C+= t_socket
     33 CPPFLAGS.t_socket.c+=	-D_KERNTYPES
     34 LDADD.t_socket+=	-lrumpnet_local -lrumpnet_net -lrumpnet
     35 LDADD.t_socket+=	${LIBRUMPBASE}
     36 .endif
     37 
     38 .include <bsd.test.mk>
     39