1996-09-23 09:00:45 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.21 1996/09/23 05:00:45 ghudson Exp $
|
1993-10-13 08:55:19 +03:00
|
|
|
#
|
|
|
|
# NOTE: $S must correspond to the top of the 'sys' tree
|
|
|
|
|
|
|
|
KERNDIR= $S/lib/libkern
|
|
|
|
|
1996-08-08 19:06:39 +04:00
|
|
|
KERNDST?= ${.OBJDIR}/lib/kern
|
|
|
|
KERNLIB= ${KERNDST}/libkern.o
|
1995-10-07 12:56:54 +03:00
|
|
|
KERNLIB_PROF= ${KERNDST}/libkern.po
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1996-02-02 23:34:38 +03:00
|
|
|
KERNMAKE= \
|
1996-08-08 19:06:39 +04:00
|
|
|
cd ${KERNDIR} && MAKEOBJDIR=${KERNDST} ${MAKE} \
|
1996-05-20 21:23:25 +04:00
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' \
|
|
|
|
AS='${AS}' AFLAGS='${AFLAGS}' \
|
1996-09-09 22:03:46 +04:00
|
|
|
LD='${LD}' STRIP='${STRIP}' \
|
1996-05-20 21:23:25 +04:00
|
|
|
MACHINE='${MACHINE}' MACHINE_ARCH='${MACHINE_ARCH}' \
|
1996-09-23 09:00:45 +04:00
|
|
|
KERNCPPFLAGS='${CPPFLAGS:S@^-I.@-I../../.@g}'
|
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}
|