NetBSD/sys/compat/common/Makefile
drochner 192b3c733c Build libraries for kernel/standalone code from within their compilation
directories and use .PATH to lookup the source files.
(Formerly, the libs were built from the source dirs, with MAKEOBJDIR
set to the compilation directory.)
This solves 2 problems:
-"mkdep" and "make" are now consistent about the file lookup, this fixes
 bad interactions with amd reported in PR bin/7374 (Arne Juul) and
 lossage reported by Andrew Gillham ("obj" dirs and relative paths still
 don't work well together)
-kernel compile trees can be moved around without forcing a new
 "make depend" - fixing PR kern/4021 by Martin Husemann
1999-05-07 14:28:50 +00:00

35 lines
776 B
Makefile

# $NetBSD: Makefile,v 1.23 1999/05/07 14:28:51 drochner Exp $
LIB= compat
MKPIC= no
CPPFLAGS= ${COMPATCPPFLAGS}
.PATH.c: ${COMPATDIR}
# Common compatibility code, used by all emulations
SRCS= compat_exec.c compat_util.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
# really, all machines where sizeof(int) != sizeof(long) (LP64)
.if (${MACHINE_ARCH} != "alpha")
SRCS+= kern_ipc_10.c
.endif
# only needed during build
libinstall::
.include <bsd.lib.mk>