11.61Sriastrad# $NetBSD: Makefile,v 1.61 2025/09/15 00:11:54 riastradh Exp $
21.57Sriastrad
31.57SriastradNOMAN=		# defined
41.1Schristos
51.1Schristos.include <bsd.own.mk>
61.1Schristos
71.1SchristosTESTSDIR=	${TESTSBASE}/lib/libc/gen
81.57SriastradBINDIR=		${TESTSDIR}
91.1Schristos
101.50SkamilTESTS_SUBDIRS+=	execve
111.40SuebayasiTESTS_SUBDIRS+=	posix_spawn
121.34Smartin
131.20SjruohoTESTS_C+=	t_alarm
141.56SriastradTESTS_C+=	t_arc4random
151.26SjruohoTESTS_C+=	t_assert
161.7SpgoyetteTESTS_C+=	t_basedirname
171.22SjruohoTESTS_C+=	t_closefrom
181.33SjruohoTESTS_C+=	t_cpuset
191.58SriastradTESTS_C+=	t_ctype
201.7SpgoyetteTESTS_C+=	t_dir
211.39SjoergTESTS_C+=	t_floatunditf
221.7SpgoyetteTESTS_C+=	t_fmtcheck
231.36SjruohoTESTS_C+=	t_fnmatch
241.29SjruohoTESTS_C+=	t_fpclassify
251.29SjruohoTESTS_C+=	t_fpsetmask
261.29SjruohoTESTS_C+=	t_fpsetround
271.33SjruohoTESTS_C+=	t_ftok
281.18SjruohoTESTS_C+=	t_getcwd
291.55SriastradTESTS_C+=	t_getentropy
301.17SjruohoTESTS_C+=	t_getgrent
311.28SjruohoTESTS_C+=	t_glob
321.7SpgoyetteTESTS_C+=	t_humanize_number
331.29SjruohoTESTS_C+=	t_isnan
341.16SjruohoTESTS_C+=	t_nice
351.23SjruohoTESTS_C+=	t_pause
361.15SjruohoTESTS_C+=	t_raise
371.13SpgoyetteTESTS_C+=	t_randomid
381.35SjruohoTESTS_C+=	t_realpath
391.25SjruohoTESTS_C+=	t_setdomainname
401.24SjruohoTESTS_C+=	t_sethostname
411.12SpgoyetteTESTS_C+=	t_siginfo
421.38SpgoyetteTESTS_C+=	t_sleep
431.27SjruohoTESTS_C+=	t_syslog
441.32SjruohoTESTS_C+=	t_time
451.60SniaTESTS_C+=	t_timespec_get
461.17SjruohoTESTS_C+=	t_ttyname
471.7SpgoyetteTESTS_C+=	t_vis
481.2Spooka
491.61SriastradPROGS+=		h_ctype_abuse
501.57SriastradPROGS+=		h_execsig
511.57Sriastrad
521.54Skamil.if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
531.54SkamilCOPTS.t_siginfo.c+=	-DENABLE_TESTS
541.54Skamil.endif
551.54Skamil
561.56SriastradCPPFLAGS.t_arc4random.c+=-I${NETBSDSRCDIR}/lib/libc/include
571.59SriastradCPPFLAGS.t_ctype.c+=	\
581.59Sriastrad	${"${MKPIC}" == "no" || "${LDSTATIC:U}" == "-static":?-D_CTYPE_GUARD_PAGE=0:}
591.49SchristosCPPFLAGS.t_siginfo.c+=-D__TEST_FENV
601.53SmayaCOPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
611.49Schristos
621.41SmattLDADD.t_siginfo+=	-lm
631.41SmattDPADD.t_siginfo+=	${LIBM}
641.29SjruohoLDADD.t_fpclassify+=	-lm
651.31SchristosDPADD.t_fpclassify+=	${LIBM}
661.31SchristosLDADD.t_fpsetround+=	-lm
671.31SchristosDPADD.t_fpsetround+=	${LIBM}
681.29Sjruoho
691.56SriastradLDADD.t_arc4random+=	-lpthread
701.56SriastradDPADD.t_arc4random+=	${LIBPTHREAD}
711.19SjruohoLDADD.t_nice+=		-lpthread
721.31SchristosDPADD.t_nice+=		${LIBPTHREAD}
731.27SjruohoLDADD.t_syslog+=	-lpthread
741.31SchristosDPADD.t_syslog+=	${LIBPTHREAD}
751.1Schristos
761.1Schristos.include <bsd.test.mk>
77