NetBSD/sys/compat/common/Makefile
manu 3b0f6d78ed Introduce BSD system calls with alternate patch checking (in /emul) in
compat/common, so that they can be shared by several emulations, and use
them for Darwin.

This removes the ugly dependance on FreeBSD freebsd_file.c for COMPAT_DARWIN
2002-12-08 00:50:23 +00:00

53 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2002/12/08 00:50:25 manu Exp $
LIB= compat
NOPIC= # defined
LLIBS= # defined
CPPFLAGS= ${COMPATCPPFLAGS}
.PATH.c: ${COMPATDIR}
# Common compatibility code, used by all emulations
SRCS= compat_exec.c compat_util.c compat_file.c
# Compatibility code for 4.3BSD
SRCS+= kern_exit_43.c kern_info_43.c kern_resource_43.c kern_sig_43.c \
tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c
# Compatibility code for NetBSD 0.9
SRCS+= kern_info_09.c
# Compatibility code for NetBSD 1.2
SRCS+= kern_xxx_12.c vfs_syscalls_12.c vm_12.c
# Compatibility code for NetBSD 1.3
SRCS+= kern_sig_13.c
# Compatibility code for NetBSD 1.4
SRCS+= sysv_ipc_14.c sysv_msg_14.c sysv_shm_14.c sysv_sem_14.c
# really, all machines where sizeof(int) != sizeof(long) (LP64)
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "sparc64" \
&& ${MACHINE_ARCH} != "x86_64")
SRCS+= kern_ipc_10.c
.endif
# Compatibility code for 32-bit emulations on 64-bit platforms
.if (${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64")
SRCS+= netbsd32_compat_09.c netbsd32_compat_10.c netbsd32_compat_10.c \
netbsd32_compat_12.c netbsd32_compat_13.c netbsd32_compat_14.c \
netbsd32_compat_43.c
.PATH.c: ${COMPATDIR}/../netbsd32
.endif
# only needed during build
libinstall::
.include <bsd.own.mk>
.undef DESTDIR
.include <bsd.lib.mk>
showsources: ${SRCS}
@echo ${.ALLSRC}