diff options
author | julian <julian@FreeBSD.org> | 1996-01-22 00:23:58 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1996-01-22 00:23:58 +0000 |
commit | 529743d354ac402b1302b397159146fa46c180c5 (patch) | |
tree | d93df8a19a0cab699bfc2c0b9e4bc691251efa16 /lib/libpthread/sys | |
parent | 619b731f5bb5e09dcf1eaf1fbd96383ca64398fd (diff) | |
download | FreeBSD-src-529743d354ac402b1302b397159146fa46c180c5.zip FreeBSD-src-529743d354ac402b1302b397159146fa46c180c5.tar.gz |
Reviewed by: julian
Submitted by: john birrel
One version of the pthreads library
another will follow with differnt actions under some cases..
not QUITE complete
Diffstat (limited to 'lib/libpthread/sys')
-rw-r--r-- | lib/libpthread/sys/Makefile.inc | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc new file mode 100644 index 0000000..2b22537 --- /dev/null +++ b/lib/libpthread/sys/Makefile.inc @@ -0,0 +1,107 @@ +# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 + +# sys sources +.PATH: ${.CURDIR}/../libc/${MACHINE}/sys ${.CURDIR}/../libc/sys \ + ${.CURDIR}/sys + +# modules with non-default implementations on at least one architecture: +SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S reboot.S \ + sbrk.S setlogin.S sigpending.S sigprocmask.S sigreturn.S \ + sigsuspend.S syscall.S __error.c + +# glue to provide compatibility between GCC 1.X and 2.X +SRCS+= ftruncate.c lseek.c mmap.c truncate.c + +# modules with default implementations on all architectures: +ASM= access.o acct.o adjtime.o chdir.o chflags.o chmod.o \ + chown.o chroot.o getdtablesize.o getegid.o geteuid.o \ + getfh.o getfsstat.o getgid.o getgroups.o getitimer.o \ + getpgrp.o getpid.o getppid.o getpriority.o \ + getrlimit.o getrusage.o gettimeofday.o getuid.o kill.o \ + ktrace.o lfs_bmapv.o lfs_markv.o lfs_segclean.o \ + lfs_segwait.o link.o lstat.o madvise.o mincore.o \ + mkdir.o mlock.o mount.o mprotect.o msgsys.o msync.o \ + munlock.o munmap.o ntp_adjtime.o pathconf.o profil.o \ + quotactl.o readlink.o rename.o revoke.o rmdir.o rtprio.o \ + semsys.o setegid.o seteuid.o setgid.o setgroups.o setitimer.o \ + setpgid.o setpriority.o setregid.o setreuid.o setrlimit.o \ + setsid.o settimeofday.o setuid.o shmsys.o stat.o statfs.o \ + swapon.o symlink.o sync.o sysarch.o umask.o unlink.o \ + unmount.o utimes.o vadvise.o __syscall.o __sysctl.o + +# Syscalls renamed as _thread_sys_{syscall}. +THREADASM= accept.o bind.o close.o connect.o dup.o dup2.o \ + execve.o fchdir.o fchflags.o fchmod.o fchown.o fcntl.o \ + flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \ + getpeername.o getsockname.o getsockopt.o ioctl.o listen.o \ + mkfifo.o mknod.o nfssvc.o open.o read.o readv.o recvfrom.o \ + recvmsg.o select.o sendmsg.o sendto.o setsockopt.o \ + shutdown.o sigaction.o sigaltstack.o socket.o socketpair.o \ + wait4.o write.o writev.o + +PSEUDO= _exit.o _getlogin.o + +OBJS+= ${ASM} ${THREADASM} ${PSEUDO} + +${ASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.o + @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ + ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o + @${LD} -x -r ${.PREFIX}.o + @mv a.out ${.PREFIX}.o + +PASM= ${ASM:.o=.po} +${PASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.po + @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ + ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po + @${LD} -x -r ${.PREFIX}.po + @mv a.out ${.PREFIX}.po + +SASM= ${ASM:.o=.so} +${SASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.so + @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so + +${THREADASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.o + @printf '#include "SYS.h"\nPRSYSCALL(${.PREFIX})\n' | \ + ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o + @${LD} -x -r ${.PREFIX}.o + @mv a.out ${.PREFIX}.o + +PTHREADASM= ${THREADASM:.o=.po} +${PTHREADASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.po + @printf '#include "SYS.h"\nPRSYSCALL(${.PREFIX})\n' | \ + ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po + @${LD} -x -r ${.PREFIX}.po + @mv a.out ${.PREFIX}.po + +STHREADASM= ${THREADASM:.o=.so} +${STHREADASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.so + @printf '#include "SYS.h"\nPRSYSCALL(${.PREFIX})\n' | \ + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so + +${PSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.o + @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ + ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o + @${LD} -x -r ${.PREFIX}.o + @mv a.out ${.PREFIX}.o + +PPSEUDO=${PSEUDO:.o=.po} +${PPSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.po + @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ + ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po + @${LD} -x -r ${.PREFIX}.po + @mv a.out ${.PREFIX}.po + +SPSEUDO=${PSEUDO:.o=.so} +${SPSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h /usr/include/sys/syscall.h + @${ECHO} creating ${.PREFIX}.so + @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so |