NetBSD/sys/lib/libkern/Makefile.inc

37 lines
1.0 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.21 1996/09/23 05:00:45 ghudson Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
KERNDIR= $S/lib/libkern
KERNDST?= ${.OBJDIR}/lib/kern
KERNLIB= ${KERNDST}/libkern.o
KERNLIB_PROF= ${KERNDST}/libkern.po
KERNMAKE= \
cd ${KERNDIR} && MAKEOBJDIR=${KERNDST} ${MAKE} \
CC='${CC}' CFLAGS='${CFLAGS}' \
AS='${AS}' AFLAGS='${AFLAGS}' \
1996-09-09 22:03:46 +04:00
LD='${LD}' STRIP='${STRIP}' \
MACHINE='${MACHINE}' MACHINE_ARCH='${MACHINE_ARCH}' \
KERNCPPFLAGS='${CPPFLAGS:S@^-I.@-I../../.@g}'
${KERNLIB}: .NOTMAIN __always_make_kernlib
@echo making sure the kern library is up to date...
@${KERNMAKE} libkern.o
${KERNLIB_PROF}: .NOTMAIN __always_make_kernlib
@echo making sure the profiled kern library is up to date...
@${KERNMAKE} libkern.po
clean:: .NOTMAIN __always_make_kernlib
@echo cleaning the kern library objects
@${KERNMAKE} clean
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
@mkdir -p ${KERNDST}