11.17Sriastrad# $NetBSD: Makefile,v 1.17 2024/11/01 18:35:12 riastradh Exp $
21.1Sjmmv
31.1SjmmvNOMAN=		# defined
41.1Sjmmv
51.1Sjmmv.include <bsd.own.mk>
61.1Sjmmv
71.2SjruohoTESTSDIR=		${TESTSBASE}/include/sys
81.1Sjmmv
91.10SriastradTESTS_C+=		t_bitops
101.10SriastradTESTS_C+=		t_bootblock
111.10SriastradTESTS_C+=		t_cdefs
121.13SpgoyetteTESTS_C+=		t_list
131.11SriastradTESTS_C+=		t_pslist
141.10SriastradTESTS_C+=		t_tree
151.10SriastradTESTS_C+=		t_types
161.5Sjruoho
171.17SriastradCOPTS.t_bitops.c+=	-fno-builtin-ffs
181.17SriastradCOPTS.t_bitops.c+=	-fno-builtin-ffsl
191.17SriastradCOPTS.t_bitops.c+=	-fno-builtin-ffsll
201.17Sriastrad
211.16Skamil# NULL + 0 arithmetic raises LLVM UBSan warnings, specially in sys/pslist.h
221.16Skamil# in the type-safe macros _PSLIST_VALIDATE_PTRS and _PSLIST_VALIDATE_CONTAINER.
231.16Skamil# See also src/sys/rump/Makefile.rump
241.16Skamil.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
251.16SkamilCOPTS.t_pslist.c+=	${${ACTIVE_CC} == "clang":? -fno-delete-null-pointer-checks :}
261.16Skamil.endif
271.16Skamil
281.11SriastradCPPFLAGS.t_pslist.c+=	-I${NETBSDSRCDIR}/sys
291.2SjruohoLDADD.t_bitops+=	-lm
301.7Schristos
311.8Smatt.if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
321.7SchristosTESTS_C+= t_socket
331.9SchristosCPPFLAGS.t_socket.c+=	-D_KERNTYPES
341.5SjruohoLDADD.t_socket+=	-lrumpnet_local -lrumpnet_net -lrumpnet
351.15SchristosLDADD.t_socket+=	${LIBRUMPBASE}
361.7Schristos.endif
371.1Sjmmv
381.1Sjmmv.include <bsd.test.mk>
39