diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-14 22:14:54 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-14 22:14:54 +0000 |
commit | 8d8fef4caf8b0eee3dcd6ca74d07b1f12a4a0672 (patch) | |
tree | b34133a7f9ad4569b4cfd92fd631871df0f50710 /share/mk/bsd.lib.mk | |
parent | be29d65922e733a605146c6a5a30a473c9a37730 (diff) | |
download | FreeBSD-src-8d8fef4caf8b0eee3dcd6ca74d07b1f12a4a0672.zip FreeBSD-src-8d8fef4caf8b0eee3dcd6ca74d07b1f12a4a0672.tar.gz |
Add SUBDIR facility to bsd.lib.mk like in bsd.prog.mk.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index ab52fe2..2041fec 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.17 1995/01/04 22:32:40 ache Exp $ +# $Id: bsd.lib.mk,v 1.18 1995/01/14 07:51:07 jkh Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -152,7 +152,20 @@ _LIBS+=lib${LIB}_pic.a PICFLAG=-fpic .endif -all: ${_LIBS} # llib-l${LIB}.ln +_LIBSUBDIR: .USE +.if defined(SUBDIR) && !empty(SUBDIR) + @for entry in ${SUBDIR}; do \ + (${ECHODIR} "===> ${DIRPRFX}$$entry"; \ + if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ + cd ${.CURDIR}/$${entry}.${MACHINE}; \ + else \ + cd ${.CURDIR}/$${entry}; \ + fi; \ + ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/); \ + done +.endif + +all: ${_LIBS} _LIBSUBDIR # llib-l${LIB}.ln OBJS+= ${SRCS:N*.h:R:S/$/.o/g} |