2008-02-24 15:54:15 +03:00
|
|
|
# $NetBSD: Makefile,v 1.42 2008/02/24 12:54:15 martin Exp $
|
1995-06-25 00:15:55 +04:00
|
|
|
|
2002-11-02 10:49:29 +03:00
|
|
|
LIB= compat
|
|
|
|
NOPIC= # defined
|
|
|
|
LLIBS= # defined
|
1995-06-25 00:15:55 +04:00
|
|
|
|
2007-03-11 00:40:23 +03:00
|
|
|
CPPFLAGS= ${COMPATCPPFLAGS} ${SKIP_AUTODEP::=}
|
1996-06-30 04:17:02 +04:00
|
|
|
|
1999-05-07 18:28:50 +04:00
|
|
|
.PATH.c: ${COMPATDIR}
|
|
|
|
|
1998-04-28 20:27:51 +04:00
|
|
|
# Common compatibility code, used by all emulations
|
2007-12-13 00:37:26 +03:00
|
|
|
SRCS= compat_exec.c compat_util.c
|
1995-06-28 07:00:20 +04:00
|
|
|
|
1998-04-28 20:27:51 +04:00
|
|
|
# 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
|
|
|
|
|
1999-08-25 08:47:12 +04:00
|
|
|
# Compatibility code for NetBSD 1.4
|
|
|
|
SRCS+= sysv_ipc_14.c sysv_msg_14.c sysv_shm_14.c sysv_sem_14.c
|
|
|
|
|
2004-04-21 05:05:31 +04:00
|
|
|
# Compatibility code for NetBSD 2.0
|
|
|
|
SRCS+= vfs_syscalls_20.c
|
|
|
|
|
2005-08-19 06:03:49 +04:00
|
|
|
# Compatibility code for NetBSD 3.0
|
2006-06-27 01:23:56 +04:00
|
|
|
SRCS+= vfs_syscalls_30.c uipc_syscalls_30.c
|
2005-08-19 06:03:49 +04:00
|
|
|
|
2007-05-30 01:32:27 +04:00
|
|
|
# Compatibility code for NetBSD 4.0
|
2008-02-24 15:54:15 +03:00
|
|
|
SRCS+= uipc_syscalls_40.c
|
2007-05-30 01:32:27 +04:00
|
|
|
|
1998-04-28 20:27:51 +04:00
|
|
|
# really, all machines where sizeof(int) != sizeof(long) (LP64)
|
2002-04-29 13:53:39 +04:00
|
|
|
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "sparc64" \
|
|
|
|
&& ${MACHINE_ARCH} != "x86_64")
|
2005-02-27 01:58:54 +03:00
|
|
|
SRCS+= kern_ipc_10.c
|
1995-06-28 07:00:20 +04:00
|
|
|
.endif
|
1995-06-25 00:15:55 +04:00
|
|
|
|
1997-06-01 01:21:13 +04:00
|
|
|
# only needed during build
|
|
|
|
libinstall::
|
|
|
|
|
2001-11-15 01:00:42 +03:00
|
|
|
.include <bsd.own.mk>
|
2001-11-15 00:59:31 +03:00
|
|
|
.undef DESTDIR
|
1995-06-25 00:15:55 +04:00
|
|
|
.include <bsd.lib.mk>
|
2002-06-19 03:46:52 +04:00
|
|
|
|
2005-02-27 01:58:54 +03:00
|
|
|
showsources: ${SRCS}
|
2002-06-19 03:46:52 +04:00
|
|
|
@echo ${.ALLSRC}
|