Home | History | Annotate | Line # | Download | only in sys
Makefile revision 1.73
      1  1.73     lukem # $NetBSD: Makefile,v 1.73 2023/06/03 08:52:59 lukem Exp $
      2   1.1  christos 
      3   1.1  christos MKMAN=	no
      4   1.1  christos 
      5   1.1  christos .include <bsd.own.mk>
      6   1.1  christos 
      7   1.7       jym .include "../arch/Makefile.exec_prot"
      8   1.7       jym 
      9   1.1  christos TESTSDIR=		${TESTSBASE}/lib/libc/sys
     10   1.1  christos 
     11   1.4    jruoho TESTS_C+=		t_access
     12  1.38    martin TESTS_C+=		t_bind
     13   1.4    jruoho TESTS_C+=		t_chroot
     14  1.13    jruoho TESTS_C+=		t_clock_gettime
     15  1.45     njoly TESTS_C+=		t_clock_nanosleep
     16   1.2  pgoyette TESTS_C+=		t_clone
     17  1.19    jruoho TESTS_C+=		t_connect
     18   1.4    jruoho TESTS_C+=		t_dup
     19  1.69   thorpej TESTS_C+=		t_eventfd
     20  1.51     kamil TESTS_C+=		t_fork
     21   1.4    jruoho TESTS_C+=		t_fsync
     22  1.63   thorpej TESTS_C+=		t_futex_ops
     23  1.63   thorpej TESTS_C+=		t_futex_robust
     24   1.5    jruoho TESTS_C+=		t_getcontext
     25   1.4    jruoho TESTS_C+=		t_getgroups
     26   1.4    jruoho TESTS_C+=		t_getitimer
     27   1.4    jruoho TESTS_C+=		t_getlogin
     28   1.4    jruoho TESTS_C+=		t_getpid
     29  1.67  riastrad TESTS_C+=		t_getrandom
     30   1.4    jruoho TESTS_C+=		t_getrusage
     31   1.4    jruoho TESTS_C+=		t_getsid
     32  1.43     njoly TESTS_C+=		t_getsockname
     33   1.4    jruoho TESTS_C+=		t_gettimeofday
     34   1.4    jruoho TESTS_C+=		t_issetugid
     35  1.20  christos TESTS_C+=		t_kevent
     36   1.4    jruoho TESTS_C+=		t_kill
     37   1.4    jruoho TESTS_C+=		t_link
     38  1.19    jruoho TESTS_C+=		t_listen
     39  1.21    jruoho TESTS_C+=		t_lwp_ctl
     40  1.23    martin TESTS_C+=		t_lwp_create
     41  1.36  christos TESTS_C+=		t_minherit
     42   1.4    jruoho TESTS_C+=		t_mincore
     43  1.12    jruoho TESTS_C+=		t_mkdir
     44   1.4    jruoho TESTS_C+=		t_mkfifo
     45   1.4    jruoho TESTS_C+=		t_mknod
     46  1.22    jruoho TESTS_C+=		t_mlock
     47   1.4    jruoho TESTS_C+=		t_mmap
     48   1.4    jruoho TESTS_C+=		t_mprotect
     49  1.18    jruoho TESTS_C+=		t_msgctl
     50  1.18    jruoho TESTS_C+=		t_msgget
     51  1.18    jruoho TESTS_C+=		t_msgrcv
     52  1.18    jruoho TESTS_C+=		t_msgsnd
     53   1.4    jruoho TESTS_C+=		t_msync
     54   1.4    jruoho TESTS_C+=		t_nanosleep
     55  1.11    jruoho TESTS_C+=		t_pipe
     56  1.17  christos TESTS_C+=		t_pipe2
     57   1.4    jruoho TESTS_C+=		t_poll
     58  1.66     kamil TESTS_C+=		t_pollts
     59  1.37  christos TESTS_C+=		t_posix_fallocate
     60  1.66     kamil TESTS_C+=		t_ppoll
     61  1.49     kamil TESTS_C+=		t_ptrace
     62  1.61     kamil TESTS_C+=		t_ptrace_sigchld
     63  1.49     kamil TESTS_C+=		t_ptrace_wait
     64  1.49     kamil TESTS_C+=		t_ptrace_wait3
     65  1.49     kamil TESTS_C+=		t_ptrace_wait4
     66  1.49     kamil TESTS_C+=		t_ptrace_wait6
     67  1.49     kamil TESTS_C+=		t_ptrace_waitid
     68  1.49     kamil TESTS_C+=		t_ptrace_waitpid
     69  1.26  christos TESTS_C+=		t_recvmmsg
     70   1.4    jruoho TESTS_C+=		t_revoke
     71   1.4    jruoho TESTS_C+=		t_select
     72  1.53  christos TESTS_C+=		t_sendmmsg
     73  1.53  christos TESTS_C+=		t_sendrecv
     74   1.4    jruoho TESTS_C+=		t_setrlimit
     75   1.4    jruoho TESTS_C+=		t_setuid
     76  1.16    jruoho TESTS_C+=		t_sigaction
     77  1.64       ryo TESTS_C+=		t_sigaltstack
     78   1.3  pgoyette TESTS_C+=		t_sigqueue
     79  1.32    martin TESTS_C+=		t_sigtimedwait
     80  1.19    jruoho TESTS_C+=		t_socketpair
     81  1.28      manu TESTS_C+=		t_swapcontext
     82   1.4    jruoho TESTS_C+=		t_stat
     83  1.52    martin TESTS_C+=		t_syscall
     84   1.4    jruoho TESTS_C+=		t_timer_create
     85  1.69   thorpej TESTS_C+=		t_timerfd
     86   1.4    jruoho TESTS_C+=		t_truncate
     87  1.15    jruoho TESTS_C+=		t_ucontext
     88   1.4    jruoho TESTS_C+=		t_umask
     89   1.4    jruoho TESTS_C+=		t_unlink
     90  1.51     kamil TESTS_C+=		t_vfork
     91  1.42  christos TESTS_C+=		t_wait
     92  1.44     kamil TESTS_C+=		t_wait_noproc
     93  1.44     kamil TESTS_C+=		t_wait_noproc_wnohang
     94  1.14    jruoho TESTS_C+=		t_write
     95   1.4    jruoho 
     96  1.62  christos SRCS.t_mprotect=	t_mprotect.c ${SRCS_EXEC_PROT} t_mprotect_helper.c
     97   1.7       jym 
     98  1.69   thorpej LDADD.t_eventfd+=	-lpthread
     99  1.69   thorpej LDADD.t_getpid+=	-lpthread
    100  1.71      gson LDADD.t_mmap+=		-lpthread
    101  1.69   thorpej LDADD.t_timerfd+=	-lpthread
    102  1.27  christos 
    103  1.61     kamil LDADD.t_ptrace_sigchld+=	-pthread -lm
    104  1.61     kamil 
    105  1.57    mgorny LDADD.t_ptrace_wait+=		-pthread -lm -lelf
    106  1.57    mgorny LDADD.t_ptrace_wait3+=		-pthread -lm -lelf
    107  1.57    mgorny LDADD.t_ptrace_wait4+=		-pthread -lm -lelf
    108  1.57    mgorny LDADD.t_ptrace_wait6+=		-pthread -lm -lelf
    109  1.57    mgorny LDADD.t_ptrace_waitid+=		-pthread -lm -lelf
    110  1.57    mgorny LDADD.t_ptrace_waitpid+=	-pthread -lm -lelf
    111  1.54     kamil 
    112  1.39      matt .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
    113  1.40  christos CPPFLAGS.t_posix_fadvise.c += -D_KERNTYPES
    114  1.27  christos TESTS_C+=		t_posix_fadvise
    115  1.60  christos LDADD.t_posix_fadvise+= ${LIBRUMPBASE}
    116  1.27  christos .endif
    117   1.4    jruoho 
    118  1.63   thorpej CPPFLAGS.t_futex_ops.c		+= -I${.CURDIR}/../../../../lib
    119  1.63   thorpej CPPFLAGS.t_futex_robust.c	+= -I${.CURDIR}/../../../../lib
    120  1.63   thorpej 
    121  1.70   hannken CPPFLAGS.t_timerfd.c		+= -I${.CURDIR}/../gen
    122  1.70   hannken 
    123  1.72       kre CPPFLAGE.t_clone.c		+= -D_NETBSD_SOURCE -D_GNU_SOURCE
    124  1.49     kamil CPPFLAGS.t_lwp_create.c		+= -D_KERNTYPES
    125  1.65       rin CPPFLAGS.t_ptrace_sigchld.c	+= -D__TEST_FENV
    126  1.55     kamil CPPFLAGS.t_ptrace_wait.c	+= -D_KERNTYPES -D__TEST_FENV
    127  1.55     kamil CPPFLAGS.t_ptrace_wait3.c	+= -D_KERNTYPES -D__TEST_FENV
    128  1.55     kamil CPPFLAGS.t_ptrace_wait4.c	+= -D_KERNTYPES -D__TEST_FENV
    129  1.55     kamil CPPFLAGS.t_ptrace_wait6.c	+= -D_KERNTYPES -D__TEST_FENV
    130  1.55     kamil CPPFLAGS.t_ptrace_waitid.c	+= -D_KERNTYPES -D__TEST_FENV
    131  1.55     kamil CPPFLAGS.t_ptrace_waitpid.c	+= -D_KERNTYPES -D__TEST_FENV
    132  1.50     kamil CPPFLAGS.t_ucontext.c		+= -D_KERNTYPES
    133  1.41  christos 
    134  1.58     kamil .if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
    135  1.58     kamil CPPFLAGS.t_ptrace_wait.c	+= -DENABLE_TESTS
    136  1.58     kamil CPPFLAGS.t_ptrace_wait3.c	+= -DENABLE_TESTS
    137  1.58     kamil CPPFLAGS.t_ptrace_wait4.c	+= -DENABLE_TESTS
    138  1.58     kamil CPPFLAGS.t_ptrace_wait6.c	+= -DENABLE_TESTS
    139  1.58     kamil CPPFLAGS.t_ptrace_waitid.c	+= -DENABLE_TESTS
    140  1.58     kamil CPPFLAGS.t_ptrace_waitpid.c	+= -DENABLE_TESTS
    141  1.58     kamil .endif
    142  1.58     kamil 
    143  1.46  christos FILES=		truncate_test.root_owned
    144  1.47  pgoyette FILESBUILD=	yes
    145  1.48    martin FILESDIR_truncate_test.root_owned=	${TESTSDIR}
    146  1.48    martin FILESMODE_truncate_test.root_owned=	0600
    147  1.48    martin FILESOWNER_truncate_test.root_owned=	root
    148  1.48    martin FILESGRP_truncate_test.root_owned=	wheel
    149  1.46  christos 
    150  1.46  christos CLEANFILES=   truncate_test.root_owned
    151  1.46  christos truncate_test.root_owned:
    152  1.46  christos 	dd if=/dev/null bs=1 count=1 of=${.TARGET}
    153  1.46  christos 
    154   1.4    jruoho WARNS=			4
    155   1.1  christos 
    156  1.73     lukem CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER} \
    157  1.68       mrg 			${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-error=deprecated :}
    158  1.68       mrg 
    159   1.1  christos .include <bsd.test.mk>
    160