1996-05-20 21:23:25 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.15 1996/05/20 17:23:25 mrg Exp $
|
1993-10-13 08:55:19 +03:00
|
|
|
#
|
|
|
|
# NOTE: $S must correspond to the top of the 'sys' tree
|
|
|
|
|
|
|
|
KERNDIR= $S/lib/libkern
|
|
|
|
|
1995-06-25 00:31:12 +04:00
|
|
|
KERNDST= lib/kern
|
1995-06-26 07:25:46 +04:00
|
|
|
KERNREL?= ../../
|
1995-10-07 12:56:54 +03:00
|
|
|
KERNLIB?= ${KERNDST}/libkern.o
|
|
|
|
KERNLIB_PROF= ${KERNDST}/libkern.po
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1996-02-02 23:34:38 +03:00
|
|
|
KERNMAKE= \
|
|
|
|
cd ${KERNDST} && ${MAKE} -f ${KERNREL}${KERNDIR}/Makefile \
|
1996-05-20 21:23:25 +04:00
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' \
|
|
|
|
AS='${AS}' AFLAGS='${AFLAGS}' \
|
|
|
|
LD='${LD}' \
|
|
|
|
MACHINE='${MACHINE}' MACHINE_ARCH='${MACHINE_ARCH}' \
|
|
|
|
KERNCPPFLAGS='${CPPFLAGS}' \
|
|
|
|
KERNREL='${KERNREL}' \
|
|
|
|
KERNDIR='${KERNDIR}'
|
1996-02-02 23:34:38 +03:00
|
|
|
|
1995-06-25 00:31:12 +04:00
|
|
|
${KERNLIB}: .NOTMAIN __always_make_kernlib
|
1993-10-13 08:55:19 +03:00
|
|
|
@echo making sure the kern library is up to date...
|
1996-02-02 23:34:38 +03:00
|
|
|
@${KERNMAKE} libkern.o
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1995-06-25 00:31:12 +04:00
|
|
|
${KERNLIB_PROF}: .NOTMAIN __always_make_kernlib
|
1993-10-13 08:55:19 +03:00
|
|
|
@echo making sure the profiled kern library is up to date...
|
1996-02-02 23:34:38 +03:00
|
|
|
@${KERNMAKE} libkern.po
|
1995-06-25 00:31:12 +04:00
|
|
|
|
|
|
|
clean:: .NOTMAIN __always_make_kernlib
|
|
|
|
@echo cleaning the kern library objects
|
1996-02-02 23:34:38 +03:00
|
|
|
@${KERNMAKE} clean
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1996-05-11 20:11:30 +04:00
|
|
|
depend:: .NOTMAIN __always_make_kernlib
|
|
|
|
@echo depending the kern library objects
|
|
|
|
@${KERNMAKE} depend
|
|
|
|
|
1993-10-13 09:17:16 +03:00
|
|
|
__always_make_kernlib: .NOTMAIN
|
1996-02-02 23:34:38 +03:00
|
|
|
@mkdir -p ${KERNDST}
|