diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /sys/compat/common/Makefile.inc |
initial import of NetBSD tree
Diffstat (limited to 'sys/compat/common/Makefile.inc')
-rw-r--r-- | sys/compat/common/Makefile.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/compat/common/Makefile.inc b/sys/compat/common/Makefile.inc new file mode 100644 index 00000000000..db613f2cb81 --- /dev/null +++ b/sys/compat/common/Makefile.inc @@ -0,0 +1,37 @@ +# $NetBSD: Makefile.inc,v 1.2 1995/06/26 03:27:15 christos Exp $ +# +# NOTE: $S must correspond to the top of the 'sys' tree + +COMPATDIR= $S/compat/common + +COMPATDST?= lib/compat +COMPATREL?= ../../ +COMPATLIB= ${COMPATDST}/libcompat.a +COMPATLIB_PROF= ${COMPATDST}/libcompat_p.a + +${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) + +${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) + +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) + +__always_make_compatlib: .NOTMAIN + @([ -d ${COMPATDST} ] || mkdir -p ${COMPATDST}) |