From 5afa43af2cd14a1c5880d52a78a8145b548bd672 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 14 Feb 2001 20:49:54 +0000 Subject: [PATCH] Only build the compat libs appropiate for the target machine. --- lib/compat/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/compat/Makefile b/lib/compat/Makefile index 2855c875be65..3339bccebb8d 100644 --- a/lib/compat/Makefile +++ b/lib/compat/Makefile @@ -2,6 +2,7 @@ SUBDIR= +.if ${MACHINE_ARCH} == "i386" # Note that compat21 is *not* for the 2.1.x branch! .if defined(COMPAT1X) || defined(RELEASEDIR) SUBDIR+= compat1x @@ -15,11 +16,18 @@ SUBDIR+= compat21 .if defined(COMPAT22) || defined(RELEASEDIR) SUBDIR+= compat22 .endif +.endif + +.if exists (${.CURDIR}/compat3x.${MACHINE_ARCH}) .if defined(COMPAT3X) || defined(RELEASEDIR) SUBDIR+= compat3x.${MACHINE_ARCH} .endif +.endif + +.if exists (${.CURDIR}/compat4x.${MACHINE_ARCH}) .if defined(COMPAT4X) || defined(RELEASEDIR) SUBDIR+= compat4x.${MACHINE_ARCH} .endif +.endif .include