Home | History | Annotate | Line # | Download | only in sys
Makefile revision 1.52.2.3
      1  1.52.2.2    martin # $NetBSD: Makefile,v 1.52.2.3 2020/04/21 18:42:47 martin 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.51     kamil TESTS_C+=		t_fork
     20       1.4    jruoho TESTS_C+=		t_fsync
     21       1.5    jruoho TESTS_C+=		t_getcontext
     22       1.4    jruoho TESTS_C+=		t_getgroups
     23       1.4    jruoho TESTS_C+=		t_getitimer
     24       1.4    jruoho TESTS_C+=		t_getlogin
     25       1.4    jruoho TESTS_C+=		t_getpid
     26       1.4    jruoho TESTS_C+=		t_getrusage
     27       1.4    jruoho TESTS_C+=		t_getsid
     28      1.43     njoly TESTS_C+=		t_getsockname
     29       1.4    jruoho TESTS_C+=		t_gettimeofday
     30       1.4    jruoho TESTS_C+=		t_issetugid
     31      1.20  christos TESTS_C+=		t_kevent
     32       1.4    jruoho TESTS_C+=		t_kill
     33       1.4    jruoho TESTS_C+=		t_link
     34      1.19    jruoho TESTS_C+=		t_listen
     35      1.21    jruoho TESTS_C+=		t_lwp_ctl
     36      1.23    martin TESTS_C+=		t_lwp_create
     37      1.36  christos TESTS_C+=		t_minherit
     38       1.4    jruoho TESTS_C+=		t_mincore
     39      1.12    jruoho TESTS_C+=		t_mkdir
     40       1.4    jruoho TESTS_C+=		t_mkfifo
     41       1.4    jruoho TESTS_C+=		t_mknod
     42      1.22    jruoho TESTS_C+=		t_mlock
     43       1.4    jruoho TESTS_C+=		t_mmap
     44       1.4    jruoho TESTS_C+=		t_mprotect
     45      1.18    jruoho TESTS_C+=		t_msgctl
     46      1.18    jruoho TESTS_C+=		t_msgget
     47      1.18    jruoho TESTS_C+=		t_msgrcv
     48      1.18    jruoho TESTS_C+=		t_msgsnd
     49       1.4    jruoho TESTS_C+=		t_msync
     50       1.4    jruoho TESTS_C+=		t_nanosleep
     51      1.11    jruoho TESTS_C+=		t_pipe
     52      1.17  christos TESTS_C+=		t_pipe2
     53       1.4    jruoho TESTS_C+=		t_poll
     54      1.37  christos TESTS_C+=		t_posix_fallocate
     55      1.49     kamil TESTS_C+=		t_ptrace
     56  1.52.2.2    martin TESTS_C+=		t_ptrace_sigchld
     57      1.49     kamil TESTS_C+=		t_ptrace_wait
     58      1.49     kamil TESTS_C+=		t_ptrace_wait3
     59      1.49     kamil TESTS_C+=		t_ptrace_wait4
     60      1.49     kamil TESTS_C+=		t_ptrace_wait6
     61      1.49     kamil TESTS_C+=		t_ptrace_waitid
     62      1.49     kamil TESTS_C+=		t_ptrace_waitpid
     63      1.26  christos TESTS_C+=		t_recvmmsg
     64       1.4    jruoho TESTS_C+=		t_revoke
     65       1.4    jruoho TESTS_C+=		t_select
     66  1.52.2.1  christos TESTS_C+=		t_sendmmsg
     67  1.52.2.1  christos TESTS_C+=		t_sendrecv
     68       1.4    jruoho TESTS_C+=		t_setrlimit
     69       1.4    jruoho TESTS_C+=		t_setuid
     70      1.16    jruoho TESTS_C+=		t_sigaction
     71       1.3  pgoyette TESTS_C+=		t_sigqueue
     72      1.32    martin TESTS_C+=		t_sigtimedwait
     73      1.19    jruoho TESTS_C+=		t_socketpair
     74      1.28      manu TESTS_C+=		t_swapcontext
     75       1.4    jruoho TESTS_C+=		t_stat
     76      1.52    martin TESTS_C+=		t_syscall
     77       1.4    jruoho TESTS_C+=		t_timer_create
     78       1.4    jruoho TESTS_C+=		t_truncate
     79      1.15    jruoho TESTS_C+=		t_ucontext
     80       1.4    jruoho TESTS_C+=		t_umask
     81       1.4    jruoho TESTS_C+=		t_unlink
     82      1.51     kamil TESTS_C+=		t_vfork
     83      1.42  christos TESTS_C+=		t_wait
     84      1.44     kamil TESTS_C+=		t_wait_noproc
     85      1.44     kamil TESTS_C+=		t_wait_noproc_wnohang
     86      1.14    jruoho TESTS_C+=		t_write
     87       1.4    jruoho 
     88  1.52.2.3    martin SRCS.t_mprotect=	t_mprotect.c ${SRCS_EXEC_PROT} t_mprotect_helper.c
     89       1.7       jym 
     90       1.4    jruoho LDADD.t_getpid+=        -lpthread
     91      1.27  christos 
     92  1.52.2.2    martin LDADD.t_ptrace_sigchld+=	-pthread -lm
     93  1.52.2.2    martin 
     94  1.52.2.2    martin LDADD.t_ptrace_wait+=		-pthread -lm -lelf
     95  1.52.2.2    martin LDADD.t_ptrace_wait3+=		-pthread -lm -lelf
     96  1.52.2.2    martin LDADD.t_ptrace_wait4+=		-pthread -lm -lelf
     97  1.52.2.2    martin LDADD.t_ptrace_wait6+=		-pthread -lm -lelf
     98  1.52.2.2    martin LDADD.t_ptrace_waitid+=		-pthread -lm -lelf
     99  1.52.2.2    martin LDADD.t_ptrace_waitpid+=	-pthread -lm -lelf
    100  1.52.2.1  christos 
    101      1.39      matt .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
    102      1.40  christos CPPFLAGS.t_posix_fadvise.c += -D_KERNTYPES
    103      1.27  christos TESTS_C+=		t_posix_fadvise
    104  1.52.2.2    martin LDADD.t_posix_fadvise+= ${LIBRUMPBASE}
    105      1.27  christos .endif
    106       1.4    jruoho 
    107      1.49     kamil CPPFLAGS.t_lwp_create.c		+= -D_KERNTYPES
    108  1.52.2.1  christos CPPFLAGS.t_ptrace_wait.c	+= -D_KERNTYPES -D__TEST_FENV
    109  1.52.2.1  christos CPPFLAGS.t_ptrace_wait3.c	+= -D_KERNTYPES -D__TEST_FENV
    110  1.52.2.1  christos CPPFLAGS.t_ptrace_wait4.c	+= -D_KERNTYPES -D__TEST_FENV
    111  1.52.2.1  christos CPPFLAGS.t_ptrace_wait6.c	+= -D_KERNTYPES -D__TEST_FENV
    112  1.52.2.1  christos CPPFLAGS.t_ptrace_waitid.c	+= -D_KERNTYPES -D__TEST_FENV
    113  1.52.2.1  christos CPPFLAGS.t_ptrace_waitpid.c	+= -D_KERNTYPES -D__TEST_FENV
    114      1.50     kamil CPPFLAGS.t_ucontext.c		+= -D_KERNTYPES
    115      1.41  christos 
    116  1.52.2.2    martin .if ${MKSANITIZER:Uno} != "yes" && ${MKLIBCSANITIZER:Uno} != "yes"
    117  1.52.2.2    martin CPPFLAGS.t_ptrace_wait.c	+= -DENABLE_TESTS
    118  1.52.2.2    martin CPPFLAGS.t_ptrace_wait3.c	+= -DENABLE_TESTS
    119  1.52.2.2    martin CPPFLAGS.t_ptrace_wait4.c	+= -DENABLE_TESTS
    120  1.52.2.2    martin CPPFLAGS.t_ptrace_wait6.c	+= -DENABLE_TESTS
    121  1.52.2.2    martin CPPFLAGS.t_ptrace_waitid.c	+= -DENABLE_TESTS
    122  1.52.2.2    martin CPPFLAGS.t_ptrace_waitpid.c	+= -DENABLE_TESTS
    123  1.52.2.2    martin .endif
    124  1.52.2.2    martin 
    125      1.46  christos FILES=		truncate_test.root_owned
    126      1.47  pgoyette FILESBUILD=	yes
    127      1.48    martin FILESDIR_truncate_test.root_owned=	${TESTSDIR}
    128      1.48    martin FILESMODE_truncate_test.root_owned=	0600
    129      1.48    martin FILESOWNER_truncate_test.root_owned=	root
    130      1.48    martin FILESGRP_truncate_test.root_owned=	wheel
    131      1.46  christos 
    132      1.46  christos CLEANFILES=   truncate_test.root_owned
    133      1.46  christos truncate_test.root_owned:
    134      1.46  christos 	dd if=/dev/null bs=1 count=1 of=${.TARGET}
    135      1.46  christos 
    136       1.4    jruoho WARNS=			4
    137       1.1  christos 
    138       1.1  christos .include <bsd.test.mk>
    139