1 1.4 mycroft # from: @(#)Makefile.inc 5.11 (Berkeley) 6/23/91 2 1.6 mycroft # $Id: Makefile.inc,v 1.6 1993/08/16 03:32:58 mycroft Exp $ 3 1.1 cgd 4 1.1 cgd # sys sources 5 1.1 cgd .PATH: ${.CURDIR}/${MACHINE}/sys ${.CURDIR}/sys 6 1.1 cgd 7 1.1 cgd # modules with non-default implementations on at least one architecture: 8 1.1 cgd SRCS+= Ovfork.s brk.s cerror.s exect.s fork.s pipe.s ptrace.s reboot.s \ 9 1.1 cgd sbrk.s setlogin.s sigpending.s sigprocmask.s sigreturn.s \ 10 1.1 cgd sigsuspend.s syscall.s 11 1.1 cgd 12 1.1 cgd # modules with default implementations on all architectures: 13 1.1 cgd ASM= accept.o access.o acct.o adjtime.o async_daemon.o bind.o chdir.o \ 14 1.1 cgd chflags.o chmod.o chown.o chroot.o close.o connect.o dup.o dup2.o \ 15 1.1 cgd execve.o fchdir.o fchflags.o fchmod.o fchown.o fcntl.o flock.o \ 16 1.1 cgd fstat.o fstatfs.o fsync.o ftruncate.o getdirentries.o \ 17 1.1 cgd getdtablesize.o getegid.o geteuid.o getfh.o getfsstat.o getgid.o \ 18 1.1 cgd getgroups.o gethostid.o gethostname.o getitimer.o getkerninfo.o \ 19 1.1 cgd getpagesize.o getpeername.o getpgrp.o getpid.o getppid.o \ 20 1.1 cgd getpriority.o getrlimit.o getrusage.o getsockname.o getsockopt.o \ 21 1.1 cgd gettimeofday.o getuid.o ioctl.o kill.o ktrace.o link.o listen.o \ 22 1.1 cgd lseek.o lstat.o madvise.o mincore.o mkdir.o mkfifo.o mknod.o \ 23 1.1 cgd mmap.o mount.o mprotect.o msync.o munmap.o nfssvc.o open.o \ 24 1.1 cgd profil.o quotactl.o read.o readlink.o readv.o recvfrom.o recvmsg.o \ 25 1.1 cgd rename.o revoke.o rmdir.o select.o sendmsg.o sendto.o setegid.o \ 26 1.1 cgd seteuid.o setgid.o setgroups.o sethostid.o sethostname.o \ 27 1.1 cgd setitimer.o setpgid.o setpriority.o setregid.o setreuid.o \ 28 1.1 cgd setrlimit.o setsid.o setsockopt.o settimeofday.o setuid.o \ 29 1.1 cgd shutdown.o sigaction.o sigstack.o socket.o socketpair.o stat.o \ 30 1.1 cgd statfs.o swapon.o symlink.o sync.o truncate.o umask.o unlink.o \ 31 1.2 deraadt unmount.o utimes.o vadvise.o wait4.o write.o writev.o getdomainname.o \ 32 1.3 cgd setdomainname.o uname.o 33 1.6 mycroft PASM= ${ASM:.o=.po} 34 1.1 cgd 35 1.1 cgd PSEUDO= _exit.o _getlogin.o 36 1.6 mycroft PPSEUDO=${PSEUDO:.o=.po} 37 1.1 cgd 38 1.1 cgd OBJS+= ${ASM} ${PSEUDO} 39 1.6 mycroft POBJS+= ${PASM} ${PPSEUDO} 40 1.1 cgd CLEANFILES+=${ASM} ${PSEUDO} ${POBJS} 41 1.1 cgd 42 1.6 mycroft ${PASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h 43 1.6 mycroft @echo creating ${.TARGET} 44 1.1 cgd @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ 45 1.6 mycroft ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET} 46 1.6 mycroft @${LD} -X -r ${.TARGET} 47 1.6 mycroft @mv a.out ${.TARGET} 48 1.5 mycroft 49 1.5 mycroft ${ASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h 50 1.6 mycroft @echo creating ${.TARGET} 51 1.1 cgd @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ 52 1.6 mycroft ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET} 53 1.6 mycroft @${LD} -x -r ${.TARGET} 54 1.6 mycroft @mv a.out ${.TARGET} 55 1.5 mycroft 56 1.6 mycroft ${PPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h 57 1.6 mycroft @echo creating ${.TARGET} 58 1.5 mycroft @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ 59 1.6 mycroft ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET} 60 1.6 mycroft @${LD} -X -r ${.TARGET} 61 1.6 mycroft @mv a.out ${.TARGET} 62 1.1 cgd 63 1.1 cgd ${PSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h 64 1.6 mycroft @echo creating ${.TARGET} 65 1.1 cgd @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ 66 1.6 mycroft ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET} 67 1.6 mycroft @${LD} -x -r ${.TARGET} 68 1.6 mycroft @mv a.out ${.TARGET} 69 1.1 cgd 70 1.1 cgd MAN2+= accept.0 access.0 acct.0 adjtime.0 async_daemon.0 bind.0 brk.0 \ 71 1.1 cgd chdir.0 chflags.0 chmod.0 chown.0 chroot.0 close.0 connect.0 \ 72 1.1 cgd dup.0 execve.0 _exit.0 fcntl.0 flock.0 fork.0 fsync.0 \ 73 1.1 cgd getdirentries.0 getdtablesize.0 getfh.0 getfsstat.0 getgid.0 \ 74 1.1 cgd getgroups.0 gethostid.0 gethostname.0 getitimer.0 getlogin.0 \ 75 1.1 cgd getpagesize.0 getpeername.0 getpgrp.0 getpid.0 getpriority.0 \ 76 1.1 cgd getrlimit.0 getrusage.0 getsockname.0 getsockopt.0 \ 77 1.1 cgd gettimeofday.0 getuid.0 intro.0 ioctl.0 kill.0 link.0 listen.0 \ 78 1.1 cgd lseek.0 mkdir.0 mkfifo.0 mknod.0 madvise.0 mincore.0 mmap.0 mount.0 \ 79 1.1 cgd mprotect.0 msync.0 munmap.0 nfssvc.0 open.0 pipe.0 \ 80 1.1 cgd quotactl.0 read.0 readlink.0 reboot.0 recv.0 rename.0 \ 81 1.1 cgd rmdir.0 select.0 send.0 setgroups.0 setpgid.0 setregid.0 setreuid.0 \ 82 1.1 cgd shutdown.0 sigaction.0 sigprocmask.0 sigreturn.0 sigstack.0 \ 83 1.1 cgd sigsuspend.0 socket.0 socketpair.0 stat.0 statfs.0 swapon.0 \ 84 1.1 cgd symlink.0 sync.0 syscall.0 truncate.0 umask.0 unlink.0 utimes.0 \ 85 1.3 cgd vfork.0 wait.0 write.0 getdomainname.0 uname.0 86 1.1 cgd 87 1.1 cgd MLINKS+=brk.2 sbrk.2 88 1.1 cgd MLINKS+=dup.2 dup2.2 89 1.1 cgd MLINKS+=chdir.2 fchdir.2 90 1.1 cgd MLINKS+=chflags.2 fchflags.2 91 1.1 cgd MLINKS+=chmod.2 fchmod.2 92 1.1 cgd MLINKS+=chown.2 fchown.2 93 1.1 cgd MLINKS+=getgid.2 getegid.2 94 1.1 cgd MLINKS+=gethostid.2 sethostid.2 95 1.1 cgd MLINKS+=gethostname.2 sethostname.2 96 1.1 cgd MLINKS+=getitimer.2 setitimer.2 97 1.1 cgd MLINKS+=getlogin.2 setlogin.2 98 1.1 cgd MLINKS+=getpid.2 getppid.2 99 1.1 cgd MLINKS+=getpriority.2 setpriority.2 100 1.1 cgd MLINKS+=getrlimit.2 setrlimit.2 101 1.1 cgd MLINKS+=getsockopt.2 setsockopt.2 102 1.1 cgd MLINKS+=gettimeofday.2 settimeofday.2 103 1.1 cgd MLINKS+=getuid.2 geteuid.2 104 1.1 cgd MLINKS+=intro.2 errno.2 105 1.1 cgd MLINKS+=lseek.2 seek.2 106 1.1 cgd MLINKS+=mount.2 unmount.2 107 1.1 cgd MLINKS+=read.2 readv.2 108 1.1 cgd MLINKS+=recv.2 recvfrom.2 recv.2 recvmsg.2 109 1.1 cgd MLINKS+=send.2 sendmsg.2 send.2 sendto.2 110 1.1 cgd MLINKS+=stat.2 fstat.2 stat.2 lstat.2 111 1.1 cgd MLINKS+=statfs.2 fstatfs.2 112 1.1 cgd MLINKS+=truncate.2 ftruncate.2 113 1.1 cgd MLINKS+=wait.2 wait3.2 wait.2 wait4.2 wait.2 waitpid.2 114 1.1 cgd MLINKS+=write.2 writev.2 115 1.2 deraadt MLINKS+=getdomainname.2 setdomainname.2 116