NetBSD/sys/lib/libkern/Makefile.inc

22 lines
632 B
Makefile

# $NetBSD: Makefile.inc,v 1.9 1994/12/31 04:26:58 mycroft Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
KERNDIR= $S/lib/libkern
KERNLIBDIR!=cd $(KERNDIR); \
printf "xxx:\n\techo \$${.OBJDIR}\n" | $(MAKE) -r -s -f - xxx
KERNLIB= $(KERNLIBDIR)/libkern.a
KERNLIB_PROF= $(KERNLIBDIR)/libkern_p.a
$(KERNLIB): .NOTMAIN __always_make_kernlib
@echo making sure the kern library is up to date...
@(cd $(KERNDIR); $(MAKE) libkern.a)
$(KERNLIB_PROF): .NOTMAIN __always_make_kernlib
@echo making sure the profiled kern library is up to date...
@(cd $(KERNDIR); $(MAKE) libkern_p.a)
__always_make_kernlib: .NOTMAIN