slight cleanup, and ... (gasp) add comments

This commit is contained in:
cgd 1993-10-13 05:55:19 +00:00
parent a56ad85df4
commit 15f1203e06
3 changed files with 29 additions and 10 deletions

View File

@ -1,7 +1,6 @@
# $Id: Makefile,v 1.1 1993/10/13 05:40:34 cgd Exp $
# $Id: Makefile,v 1.2 1993/10/13 05:55:19 cgd Exp $
LIB= kern
LIBDIR= ${.CURDIR}/../arch/${MACHINE}/compile
NOPIC=
.if exists (${.CURDIR}/${MACHINE}/Makefile.inc)
@ -16,7 +15,7 @@ NOPIC=
.endif
.endif
LIBC= ${.CURDIR}/../../lib/libc
LIBC= ${.CURDIR}/../../../lib/libc
.PATH: ${LIBC}/string ${LIBC}/arch/${MACHINE}/string
.PATH: ${LIBC}/net ${LIBC}/arch/${MACHINE}/net
.PATH: ${LIBC}/gen ${LIBC}/arch/${MACHINE}/gen
@ -25,11 +24,5 @@ LIBC= ${.CURDIR}/../../lib/libc
AINC+= -I${LIBC}/arch/${MACHINE}
install:
install ${COPY} lib${LIB}.a ${LIBDIR}
${RANLIB} -t ${LIBDIR}/lib${LIB}.a
.if !defined(NOPROFILE)
install ${COPY} lib${LIB}_p.a ${LIBDIR}
${RANLIB} -t ${LIBDIR}/lib${LIB}_p.a
.endif
.include <bsd.lib.mk>

View File

@ -0,0 +1,24 @@
# $Id: Makefile.inc,v 1.1 1993/10/13 05:55:20 cgd Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
KERNDIR= $S/lib/libkern
.if exists($(KERNDIR)/obj)
KERNLIBDIR= $(KERNDIR)/obj
.else
KERNLIBDIR= $(KERNDIR)
.endif
KERNLIB= $(KERNLIBDIR)/libkern.a
KERNLIB_PROF= $(KERNLIBDIR)/libkern_p.a
$(KERNLIB): __always_make_kernlib
@echo making sure the kern library is up to date...
@(cd $(KERNDIR) ; make libkern.a)
$(KERNLIB_PROF): __always_make_kernlib
@echo making sure the profiled kern library is up to date...
@(cd $(KERNDIR) ; make libkern_p.a)
__always_make_kernlib:

View File

@ -1,4 +1,6 @@
# $Id: Makefile.inc,v 1.1 1993/10/13 05:41:19 cgd Exp $
# $Id: Makefile.inc,v 1.2 1993/10/13 05:55:57 cgd Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
NETBOOTDIR= $S/lib/libnetboot