Makefile revision 1.60
11.60Snia# $NetBSD: Makefile,v 1.60 2025/04/22 13:48:24 nia 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.57SriastradPROGS+=		h_execsig
501.57Sriastrad
511.54Skamil.if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
521.54SkamilCOPTS.t_siginfo.c+=	-DENABLE_TESTS
531.54Skamil.endif
541.54Skamil
551.56SriastradCPPFLAGS.t_arc4random.c+=-I${NETBSDSRCDIR}/lib/libc/include
561.59SriastradCPPFLAGS.t_ctype.c+=	\
571.59Sriastrad	${"${MKPIC}" == "no" || "${LDSTATIC:U}" == "-static":?-D_CTYPE_GUARD_PAGE=0:}
581.49SchristosCPPFLAGS.t_siginfo.c+=-D__TEST_FENV
591.53SmayaCOPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
601.49Schristos
611.41SmattLDADD.t_siginfo+=	-lm
621.41SmattDPADD.t_siginfo+=	${LIBM}
631.29SjruohoLDADD.t_fpclassify+=	-lm
641.31SchristosDPADD.t_fpclassify+=	${LIBM}
651.31SchristosLDADD.t_fpsetround+=	-lm
661.31SchristosDPADD.t_fpsetround+=	${LIBM}
671.29Sjruoho
681.56SriastradLDADD.t_arc4random+=	-lpthread
691.56SriastradDPADD.t_arc4random+=	${LIBPTHREAD}
701.19SjruohoLDADD.t_nice+=		-lpthread
711.31SchristosDPADD.t_nice+=		${LIBPTHREAD}
721.27SjruohoLDADD.t_syslog+=	-lpthread
731.31SchristosDPADD.t_syslog+=	${LIBPTHREAD}
741.1Schristos
751.1Schristos.include <bsd.test.mk>
76