Makefile revision 1.58
11.58Sriastrad# $NetBSD: Makefile,v 1.58 2025/03/28 18:41:55 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.17SjruohoTESTS_C+=	t_ttyname
461.7SpgoyetteTESTS_C+=	t_vis
471.2Spooka
481.57SriastradPROGS+=		h_execsig
491.57Sriastrad
501.54Skamil.if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
511.54SkamilCOPTS.t_siginfo.c+=	-DENABLE_TESTS
521.54Skamil.endif
531.54Skamil
541.56SriastradCPPFLAGS.t_arc4random.c+=-I${NETBSDSRCDIR}/lib/libc/include
551.49SchristosCPPFLAGS.t_siginfo.c+=-D__TEST_FENV
561.53SmayaCOPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
571.49Schristos
581.41SmattLDADD.t_siginfo+=	-lm
591.41SmattDPADD.t_siginfo+=	${LIBM}
601.29SjruohoLDADD.t_fpclassify+=	-lm
611.31SchristosDPADD.t_fpclassify+=	${LIBM}
621.31SchristosLDADD.t_fpsetround+=	-lm
631.31SchristosDPADD.t_fpsetround+=	${LIBM}
641.29Sjruoho
651.56SriastradLDADD.t_arc4random+=	-lpthread
661.56SriastradDPADD.t_arc4random+=	${LIBPTHREAD}
671.19SjruohoLDADD.t_nice+=		-lpthread
681.31SchristosDPADD.t_nice+=		${LIBPTHREAD}
691.27SjruohoLDADD.t_syslog+=	-lpthread
701.31SchristosDPADD.t_syslog+=	${LIBPTHREAD}
711.1Schristos
721.1Schristos.include <bsd.test.mk>
73