-SRCS+= ATPgetreq.s \
+.PATH: ${.CURDIR}/ppc/sys
+MDSRCS+= ATPgetreq.s \
ATPgetrsp.s \
ATPsndreq.s \
ATPsndrsp.s \
ATgetmsg.s \
ATputmsg.s \
ATsocket.s \
+ OSAtomic.s \
_exit.s \
_getlogin.s \
_longjmp.s \
audit.s \
auditctl.s \
auditon.s \
+ auditsvc.s \
bind.s \
cerror.s \
chdir.s \
fchmod.s \
fchown.s \
fcntl.s \
+ fgetxattr.s \
fhopen.s \
+ flistxattr.s \
flock.s \
fork.s \
fpathconf.s \
+ fremovexattr.s \
fsctl.s \
+ fsetxattr.s \
fstat.s \
fstatfs.s \
fstatv.s \
getgroups.s \
getitimer.s \
getpeername.s \
- getpgrp.s \
getpgid.s \
+ getpgrp.s \
getpid.s \
getppid.s \
getpriority.s \
getsid.s \
getsockname.s \
getsockopt.s \
- ppc_gettimeofday.s \
getuid.s \
+ getxattr.s \
ioctl.s \
issetugid.s \
kevent.s \
kqueue_from_portset_np.s \
kqueue_portset_np.s \
ktrace.s \
+ lchown.s \
link.s \
lio_listio.s \
listen.s \
+ listxattr.s \
load_shared_file.s \
longjmp.s \
lseek.s \
pathconf.s \
pipe.s \
posix_madvise.s \
- processor_facilities.s \
+ ppc_gettimeofday.s \
pread.s \
+ processor_facilities.s \
profil.s \
- pwrite.s \
- ptrace.s \
pthread_sigmask.s \
+ ptrace.s \
+ pwrite.s \
quota.s \
quotactl.s \
read.s \
reboot.s \
recvfrom.s \
recvmsg.s \
+ removexattr.s \
rename.s \
reset_shared_file.s \
revoke.s \
setsockopt.s \
settimeofday.s \
setuid.s \
+ setxattr.s \
shmat.s \
shmctl.s \
shmdt.s \
wait4.s \
write.s \
writev.s
+
+.for _src in fhopen.s getfh.s nfsclnt.s
+CFLAGS-${_src} += -DNFSCLIENT
+.endfor
+
+CFLAGS-nfssvc.s += -DNFSSERVER