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