summaryrefslogtreecommitdiff
path: root/sys/compat/common
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-25 11:23:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-25 11:23:34 +0000
commit81c82f0a9fedfa5bda0780e86db5a95a644b83dc (patch)
tree96e86ecc2edffc7e5499f96782d7c6f3fe3018ce /sys/compat/common
parent7ac5456ddfe594fa299bc0055230df33e759a988 (diff)
Get rid of the kernel 'libcompat' framework, and instead use conf/files to
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
Diffstat (limited to 'sys/compat/common')
-rw-r--r--sys/compat/common/Makefile26
-rw-r--r--sys/compat/common/Makefile.inc38
2 files changed, 0 insertions, 64 deletions
diff --git a/sys/compat/common/Makefile b/sys/compat/common/Makefile
deleted file mode 100644
index 8ac83e47cef..00000000000
--- a/sys/compat/common/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-# $OpenBSD: Makefile,v 1.19 2004/09/16 13:57:47 miod Exp $
-# $NetBSD: Makefile,v 1.8 1996/05/18 15:52:19 christos Exp $
-
-LIB= compat
-NOPIC=
-
-MACHINE= ${XMACHINE}
-MACHINE_ARCH= ${XMACHINE_ARCH}
-
-.PATH: ${COMPATDIR}
-
-SRCS= compat_exec.c compat_util.c compat_dir.c compat_vm.c \
- kern_exit_43.c kern_ipc_23.c kern_ipc_35.c kern_info_09.c \
- kern_info_43.c kern_resource_43.c kern_sig_43.c tty_43.c \
- uipc_syscalls_43.c vfs_syscalls_25.c vfs_syscalls_35.c \
- vfs_syscalls_43.c vm_43.c
-
-# really, all machines where sizeof(int) != sizeof(long)
-.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "amd64") && \
- (${MACHINE_ARCH} != "mips64") && (${MACHINE_ARCH} != "sparc64")
-SRCS+= kern_ipc_10.c
-.endif
-
-install:
-
-.include <bsd.lib.mk>
diff --git a/sys/compat/common/Makefile.inc b/sys/compat/common/Makefile.inc
deleted file mode 100644
index 3918ba7871b..00000000000
--- a/sys/compat/common/Makefile.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-# $OpenBSD: Makefile.inc,v 1.7 2002/07/14 09:20:24 mdw Exp $
-# $NetBSD: Makefile.inc,v 1.5 1996/05/20 17:23:59 mrg Exp $
-#
-# NOTE: $S must correspond to the top of the 'sys' tree
-
-PWD!= pwd
-COMPATDIR!= cd $S/compat/common; pwd
-COMPATDST?= lib/compat
-COMPATLIB= ${COMPATDST}/libcompat.a
-COMPATLIB_PROF= ${COMPATDST}/libcompat_p.a
-
-COMPATMAKE= \
- cd ${COMPATDST} && ${MAKE} -f ${COMPATDIR}/Makefile \
- CC="${CC}" CFLAGS="${CFLAGS:S/-I./-I${PWD}\/./g}" \
- LD="${LD}" AR="${AR}" RANLIB="${RANLIB}" LORDER="${LORDER}" \
- NM="${NM}" \
- XMACHINE='${MACHINE}' XMACHINE_ARCH='${MACHINE_ARCH}' \
- CPPFLAGS="${CPPFLAGS:S/-I./-I${PWD}\/./g}" \
- COMPATDIR="${COMPATDIR}"
-
-${COMPATLIB}: .NOTMAIN __always_make_compatlib
- @echo making sure the compat library is up to date...
- @${COMPATMAKE} libcompat.a
-
-${COMPATLIB_PROF}: .NOTMAIN __always_make_compatlib
- @echo making sure the profiled compat library is up to date...
- @${COMPATMAKE} libcompat_p.a
-
-clean:: .NOTMAIN __always_make_compatlib
- @echo cleaning the compat library objects
- @${COMPATMAKE} clean
-
-depend:: .NOTMAIN __always_make_compatlib
- @echo depending the compat library objects
- @${COMPATMAKE} depend
-
-__always_make_compatlib: .NOTMAIN
- @mkdir -p ${COMPATDST}