summaryrefslogtreecommitdiff
path: root/sys/compat/common/Makefile.inc
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-26 23:26:56 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-26 23:26:56 +0000
commit26eaeb7b6ef67753ddb3ce44b8a4cc03d92334b8 (patch)
tree6d004d1ecd3bf1971aee8f46a3fff9fc0eff59fa /sys/compat/common/Makefile.inc
parent14749082bf35bd016d45630742d925bb5220edd9 (diff)
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/compat/common/Makefile.inc')
-rw-r--r--sys/compat/common/Makefile.inc35
1 files changed, 16 insertions, 19 deletions
diff --git a/sys/compat/common/Makefile.inc b/sys/compat/common/Makefile.inc
index db613f2cb81..4e5a5f9b4c4 100644
--- a/sys/compat/common/Makefile.inc
+++ b/sys/compat/common/Makefile.inc
@@ -1,37 +1,34 @@
-# $NetBSD: Makefile.inc,v 1.2 1995/06/26 03:27:15 christos Exp $
+# $OpenBSD: Makefile.inc,v 1.2 1996/02/26 23:26:49 niklas Exp $
+# $NetBSD: Makefile.inc,v 1.3 1996/02/02 20:34:44 mycroft Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
COMPATDIR= $S/compat/common
-COMPATDST?= lib/compat
-COMPATREL?= ../../
+COMPATDST?= lib/compat
+COMPATREL?= ../../
COMPATLIB= ${COMPATDST}/libcompat.a
COMPATLIB_PROF= ${COMPATDST}/libcompat_p.a
+COMPATMAKE= \
+ cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
+ CC="${CC}" CFLAGS="${CFLAGS}" \
+ LD="${LD}" \
+ COMPATCPPFLAGS="${CPPFLAGS}" \
+ COMPATREL="${COMPATREL}" \
+ COMPATDIR="${COMPATDIR}"
+
${COMPATLIB}: .NOTMAIN __always_make_compatlib
@echo making sure the compat library is up to date...
- @(cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
- COMPATCC="${CC}" \
- COMPATCFLAGS="${CFLAGS}" \
- COMPATREL="${COMPATREL}" \
- COMPATDIR="${COMPATDIR}" libcompat.a)
+ @${COMPATMAKE} libcompat.a
${COMPATLIB_PROF}: .NOTMAIN __always_make_compatlib
@echo making sure the profiled compat library is up to date...
- @(cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
- COMPATCC="${CC}" \
- COMPATCFLAGS="${CFLAGS}" \
- COMPATREL="${COMPATREL}" \
- COMPATDIR="${COMPATDIR}" libcompat_p.a)
+ @${COMPATMAKE} libcompat_p.a
clean:: .NOTMAIN __always_make_compatlib
@echo cleaning the compat library objects
- @(cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
- COMPATCC="${CC}" \
- COMPATCFLAGS="${CFLAGS}" \
- COMPATREL="${COMPATREL}" \
- COMPATDIR="${COMPATDIR}" clean)
+ @${COMPATMAKE} clean
__always_make_compatlib: .NOTMAIN
- @([ -d ${COMPATDST} ] || mkdir -p ${COMPATDST})
+ @mkdir -p ${COMPATDST}