Deleted Added
full compact
Makefile.inc (33798) Makefile.inc (34386)
1# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94
2# $Id: Makefile.inc,v 1.45 1998/01/31 05:53:57 imp Exp $
3
4# sys sources
1# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94
2# $Id: Makefile.inc,v 1.45 1998/01/31 05:53:57 imp Exp $
3
4# sys sources
5.PATH: ${.CURDIR}/../libc/${MACHINE}/sys ${.CURDIR}/../libc/sys
5.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys ${.CURDIR}/../libc/sys
6
6
7.include "${.CURDIR}/../libc/${MACHINE}/sys/Makefile.inc"
7# Include the generated makefile containing the *complete* list
8# of syscall names in MIASM.
9.if defined(NETBSD_SYSCALLS)
10.include "${.CURDIR}/../../sys/sys/netbsd_syscall.mk"
11.else
12.include "${.CURDIR}/../../sys/sys/syscall.mk"
13.endif
8
14
9# modules with non-default implementations on at least one architecture:
10SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S reboot.S \
11 rfork.S sbrk.S setlogin.S sigpending.S sigprocmask.S sigreturn.S \
12 sigsuspend.S syscall.S
15# Include machine dependent definitions.
16#
17# MDASM names override the default syscall names in MIASM.
18# NOASM will prevent the default syscall code from being generated.
19#
20.include "${.CURDIR}/../libc/${MACHINE_ARCH}/sys/Makefile.inc"
13
21
14# glue to provide compatibility between GCC 1.X and 2.X
15SRCS+= ftruncate.c lseek.c mmap.c truncate.c
22# If using the NetBSD syscall interface add sources that convert
23# the NetBSD interface to the one FreeBSD expects:
24.if defined(NETBSD_SYSCALLS)
25SRCS+= netbsd_getdirentries.c netbsd_stat.c
26.endif
16
27
17# modules with default implementations on all architectures:
18ASM= __getcwd.o __syscall.o __sysctl.o \
19 access.o acct.o adjtime.o \
20 aio_cancel.o aio_error.o aio_read.o aio_return.o aio_suspend.o \
21 aio_write.o \
22 chdir.o chflags.o chmod.o chown.o chroot.o \
23 clock_getres.o clock_gettime.o clock_settime.o \
24 getdtablesize.o getegid.o \
25 geteuid.o getfh.o getfsstat.o getgid.o getgroups.o getitimer.o \
26 getpgrp.o getpgid.o getpid.o getppid.o getpriority.o \
27 getrlimit.o getrusage.o getsid.o gettimeofday.o \
28 getuid.o issetugid.o kill.o \
29 kldfind.o kldfirstmod.o kldload.o kldnext.o kldstat.o kldunload.o \
30 ktrace.o lchown.o \
31 link.o lio_listio.o lstat.o \
32 madvise.o mincore.o minherit.o mkdir.o mlock.o \
33 modfind.o modfnext.o modnext.o modstat.o \
34 mount.o \
35 mprotect.o msgsys.o msync.o munlock.o munmap.o \
36 ntp_adjtime.o pathconf.o profil.o quotactl.o \
37 readlink.o rename.o revoke.o rmdir.o \
38 rtprio.o semsys.o setegid.o seteuid.o setgid.o \
39 setgroups.o setitimer.o setpgid.o setpriority.o \
40 setregid.o setreuid.o setrlimit.o \
41 setsid.o settimeofday.o setuid.o shmsys.o \
42 stat.o statfs.o \
43 swapon.o symlink.o sync.o sysarch.o \
44 umask.o undelete.o unlink.o unmount.o utimes.o utrace.o \
45 vadvise.o
28# Sources common to both syscall interfaces:
29SRCS+= __error.c ftruncate.c lseek.c mmap.c truncate.c
46
30
47# Syscalls renamed as _thread_sys_{syscall} when building libc_r.
48ASMR= accept.o bind.o close.o connect.o dup.o dup2.o \
49 execve.o fchdir.o fchflags.o fchmod.o fchown.o fcntl.o \
50 flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \
51 getpeername.o getsockname.o getsockopt.o ioctl.o listen.o \
52 mkfifo.o mknod.o nanosleep.o nfssvc.o open.o poll.o read.o readv.o \
53 recvfrom.o recvmsg.o select.o sendmsg.o sendto.o setsockopt.o \
54 shutdown.o sigaction.o sigaltstack.o signanosleep.o socket.o \
55 socketpair.o \
56 wait4.o write.o writev.o
31# Add machine dependent asm sources:
32SRCS+=${MDASM}
57
33
58PSEUDO= _getlogin.o
34# Look though the complete list of syscalls (MIASM) for names that are
35# not defined with machine dependent implementations (MDASM) and are
36# not declared for no generation of default code (NOASM). If the
37# syscall is not hidden, add it to the ASM list, otherwise add it
38# to the ASMR list.
39.for _asm in ${MIASM}
40.if (${MDASM:R:M${_asm:R}} == "")
41.if (${NOASM:R:M${_asm:R}} == "")
42.if (${HIDDEN_SYSCALLS:R:M${_asm:R}} == "")
43ASM+=$(_asm)
44.else
45ASMR+=$(_asm)
46.endif
47.endif
48.endif
49.endfor
59
50
60# Pseudo syscalls that are renamed as _thread_sys_{pseudo} when
61# building libc_r.
62PSEUDOR= _exit.o
51OBJS+= ${ASM} ${ASMR} ${PSEUDO} ${PSEUDOR}
63
64SASM= ${ASM:S/.o/.S/}
65
66SASMR= ${ASMR:S/.o/.S/}
67
68SPSEUDO= ${PSEUDO:S/.o/.S/}
69
70SPSEUDOR= ${PSEUDOR:S/.o/.S/}

--- 79 unchanged lines hidden ---
52
53SASM= ${ASM:S/.o/.S/}
54
55SASMR= ${ASMR:S/.o/.S/}
56
57SPSEUDO= ${PSEUDO:S/.o/.S/}
58
59SPSEUDOR= ${PSEUDOR:S/.o/.S/}

--- 79 unchanged lines hidden ---