Makefile revision 1.57
11.57Sriastrad# $NetBSD: Makefile,v 1.57 2025/03/13 01:27:27 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.7SpgoyetteTESTS_C+=	t_dir
201.39SjoergTESTS_C+=	t_floatunditf
211.7SpgoyetteTESTS_C+=	t_fmtcheck
221.36SjruohoTESTS_C+=	t_fnmatch
231.29SjruohoTESTS_C+=	t_fpclassify
241.29SjruohoTESTS_C+=	t_fpsetmask
251.29SjruohoTESTS_C+=	t_fpsetround
261.33SjruohoTESTS_C+=	t_ftok
271.18SjruohoTESTS_C+=	t_getcwd
281.55SriastradTESTS_C+=	t_getentropy
291.17SjruohoTESTS_C+=	t_getgrent
301.28SjruohoTESTS_C+=	t_glob
311.7SpgoyetteTESTS_C+=	t_humanize_number
321.29SjruohoTESTS_C+=	t_isnan
331.16SjruohoTESTS_C+=	t_nice
341.23SjruohoTESTS_C+=	t_pause
351.15SjruohoTESTS_C+=	t_raise
361.13SpgoyetteTESTS_C+=	t_randomid
371.35SjruohoTESTS_C+=	t_realpath
381.25SjruohoTESTS_C+=	t_setdomainname
391.24SjruohoTESTS_C+=	t_sethostname
401.12SpgoyetteTESTS_C+=	t_siginfo
411.38SpgoyetteTESTS_C+=	t_sleep
421.27SjruohoTESTS_C+=	t_syslog
431.32SjruohoTESTS_C+=	t_time
441.17SjruohoTESTS_C+=	t_ttyname
451.7SpgoyetteTESTS_C+=	t_vis
461.2Spooka
471.57SriastradPROGS+=		h_execsig
481.57Sriastrad
491.54Skamil.if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
501.54SkamilCOPTS.t_siginfo.c+=	-DENABLE_TESTS
511.54Skamil.endif
521.54Skamil
531.56SriastradCPPFLAGS.t_arc4random.c+=-I${NETBSDSRCDIR}/lib/libc/include
541.49SchristosCPPFLAGS.t_siginfo.c+=-D__TEST_FENV
551.53SmayaCOPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
561.49Schristos
571.41SmattLDADD.t_siginfo+=	-lm
581.41SmattDPADD.t_siginfo+=	${LIBM}
591.29SjruohoLDADD.t_fpclassify+=	-lm
601.31SchristosDPADD.t_fpclassify+=	${LIBM}
611.31SchristosLDADD.t_fpsetround+=	-lm
621.31SchristosDPADD.t_fpsetround+=	${LIBM}
631.29Sjruoho
641.56SriastradLDADD.t_arc4random+=	-lpthread
651.56SriastradDPADD.t_arc4random+=	${LIBPTHREAD}
661.19SjruohoLDADD.t_nice+=		-lpthread
671.31SchristosDPADD.t_nice+=		${LIBPTHREAD}
681.27SjruohoLDADD.t_syslog+=	-lpthread
691.31SchristosDPADD.t_syslog+=	${LIBPTHREAD}
701.1Schristos
711.1Schristos.include <bsd.test.mk>
72