1993-12-22 07:58:02 +03:00
|
|
|
# $Id: Makefile.inc,v 1.5 1993/12/22 04:58:02 cgd Exp $
|
1993-10-13 08:55:19 +03:00
|
|
|
#
|
|
|
|
# NOTE: $S must correspond to the top of the 'sys' tree
|
|
|
|
|
|
|
|
KERNDIR= $S/lib/libkern
|
|
|
|
|
1993-10-23 05:33:12 +03:00
|
|
|
.if exists($(KERNDIR)/obj.${MACHINE})
|
|
|
|
KERNLIBDIR= $(KERNDIR)/obj.${MACHINE}
|
1993-10-13 08:55:19 +03:00
|
|
|
.else
|
|
|
|
KERNLIBDIR= $(KERNDIR)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
KERNLIB= $(KERNLIBDIR)/libkern.a
|
|
|
|
KERNLIB_PROF= $(KERNLIBDIR)/libkern_p.a
|
|
|
|
|
1993-10-13 09:17:16 +03:00
|
|
|
$(KERNLIB): .NOTMAIN __always_make_kernlib
|
1993-10-13 08:55:19 +03:00
|
|
|
@echo making sure the kern library is up to date...
|
1993-12-22 07:58:02 +03:00
|
|
|
@(cd $(KERNDIR) ; $(MAKE))
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1993-10-13 09:17:16 +03: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...
|
1993-12-22 07:58:02 +03:00
|
|
|
@(cd $(KERNDIR) ; $(MAKE))
|
1993-10-13 08:55:19 +03:00
|
|
|
|
1993-10-13 09:17:16 +03:00
|
|
|
__always_make_kernlib: .NOTMAIN
|