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/lib/libkern/Makefile.inc |
initial import of NetBSD tree
Diffstat (limited to 'sys/lib/libkern/Makefile.inc')
-rw-r--r-- | sys/lib/libkern/Makefile.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/lib/libkern/Makefile.inc b/sys/lib/libkern/Makefile.inc new file mode 100644 index 00000000000..1c0a003a913 --- /dev/null +++ b/sys/lib/libkern/Makefile.inc @@ -0,0 +1,37 @@ +# $NetBSD: Makefile.inc,v 1.12 1995/10/07 09:56:55 mycroft Exp $ +# +# NOTE: $S must correspond to the top of the 'sys' tree + +KERNDIR= $S/lib/libkern + +KERNDST= lib/kern +KERNREL?= ../../ +KERNLIB?= ${KERNDST}/libkern.o +KERNLIB_PROF= ${KERNDST}/libkern.po + +${KERNLIB}: .NOTMAIN __always_make_kernlib + @echo making sure the kern library is up to date... + @(cd ${KERNDST} && ${MAKE} -f ${KERNREL}${KERNDIR}/Makefile \ + KERNCC="${CC}" \ + KERNCFLAGS="${CFLAGS}" \ + KERNREL="${KERNREL}" \ + KERNDIR="${KERNDIR}" libkern.o) + +${KERNLIB_PROF}: .NOTMAIN __always_make_kernlib + @echo making sure the profiled kern library is up to date... + @(cd ${KERNDST} && ${MAKE} -f ${KERNREL}${KERNDIR}/Makefile \ + KERNCC="${CC}" \ + KERNCFLAGS="${CFLAGS}" \ + KERNREL="${KERNREL}" \ + KERNDIR="${KERNDIR}" libkern.po) + +clean:: .NOTMAIN __always_make_kernlib + @echo cleaning the kern library objects + @(cd ${KERNDST} && ${MAKE} -f ${KERNREL}${KERNDIR}/Makefile \ + KERNCC="${CC}" \ + KERNCFLAGS="${CFLAGS}" \ + KERNREL="${KERNREL}" \ + KERNDIR="${KERNDIR}" clean) + +__always_make_kernlib: .NOTMAIN + @([ -d ${KERNDST} ] || mkdir -p ${KERNDST}) |