Home | History | Annotate | Line # | Download | only in gen
Makefile revision 1.60
      1 # $NetBSD: Makefile,v 1.60 2025/04/22 13:48:24 nia Exp $
      2 
      3 NOMAN=		# defined
      4 
      5 .include <bsd.own.mk>
      6 
      7 TESTSDIR=	${TESTSBASE}/lib/libc/gen
      8 BINDIR=		${TESTSDIR}
      9 
     10 TESTS_SUBDIRS+=	execve
     11 TESTS_SUBDIRS+=	posix_spawn
     12 
     13 TESTS_C+=	t_alarm
     14 TESTS_C+=	t_arc4random
     15 TESTS_C+=	t_assert
     16 TESTS_C+=	t_basedirname
     17 TESTS_C+=	t_closefrom
     18 TESTS_C+=	t_cpuset
     19 TESTS_C+=	t_ctype
     20 TESTS_C+=	t_dir
     21 TESTS_C+=	t_floatunditf
     22 TESTS_C+=	t_fmtcheck
     23 TESTS_C+=	t_fnmatch
     24 TESTS_C+=	t_fpclassify
     25 TESTS_C+=	t_fpsetmask
     26 TESTS_C+=	t_fpsetround
     27 TESTS_C+=	t_ftok
     28 TESTS_C+=	t_getcwd
     29 TESTS_C+=	t_getentropy
     30 TESTS_C+=	t_getgrent
     31 TESTS_C+=	t_glob
     32 TESTS_C+=	t_humanize_number
     33 TESTS_C+=	t_isnan
     34 TESTS_C+=	t_nice
     35 TESTS_C+=	t_pause
     36 TESTS_C+=	t_raise
     37 TESTS_C+=	t_randomid
     38 TESTS_C+=	t_realpath
     39 TESTS_C+=	t_setdomainname
     40 TESTS_C+=	t_sethostname
     41 TESTS_C+=	t_siginfo
     42 TESTS_C+=	t_sleep
     43 TESTS_C+=	t_syslog
     44 TESTS_C+=	t_time
     45 TESTS_C+=	t_timespec_get
     46 TESTS_C+=	t_ttyname
     47 TESTS_C+=	t_vis
     48 
     49 PROGS+=		h_execsig
     50 
     51 .if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
     52 COPTS.t_siginfo.c+=	-DENABLE_TESTS
     53 .endif
     54 
     55 CPPFLAGS.t_arc4random.c+=-I${NETBSDSRCDIR}/lib/libc/include
     56 CPPFLAGS.t_ctype.c+=	\
     57 	${"${MKPIC}" == "no" || "${LDSTATIC:U}" == "-static":?-D_CTYPE_GUARD_PAGE=0:}
     58 CPPFLAGS.t_siginfo.c+=-D__TEST_FENV
     59 COPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
     60 
     61 LDADD.t_siginfo+=	-lm
     62 DPADD.t_siginfo+=	${LIBM}
     63 LDADD.t_fpclassify+=	-lm
     64 DPADD.t_fpclassify+=	${LIBM}
     65 LDADD.t_fpsetround+=	-lm
     66 DPADD.t_fpsetround+=	${LIBM}
     67 
     68 LDADD.t_arc4random+=	-lpthread
     69 DPADD.t_arc4random+=	${LIBPTHREAD}
     70 LDADD.t_nice+=		-lpthread
     71 DPADD.t_nice+=		${LIBPTHREAD}
     72 LDADD.t_syslog+=	-lpthread
     73 DPADD.t_syslog+=	${LIBPTHREAD}
     74 
     75 .include <bsd.test.mk>
     76