-# $NetBSD: Makefile,v 1.11 1995/04/26 22:30:57 jtc Exp $
+# $NetBSD: Makefile,v 1.12 1995/10/22 00:45:53 christos Exp $
# @(#)Makefile 5.3 (Berkeley) 6/22/90
FILES= bsd.README bsd.doc.mk bsd.dep.mk bsd.lib.mk bsd.man.mk bsd.nls.mk \
- bsd.obj.mk bsd.own.mk bsd.prog.mk bsd.subdir.mk sys.mk
+ bsd.obj.mk bsd.own.mk bsd.prog.mk bsd.subdir.mk bsd.sys.mk sys.mk
NOOBJ= noobj
install:
-# $NetBSD: bsd.README,v 1.12 1995/09/24 23:49:06 christos Exp $
+# $NetBSD: bsd.README,v 1.13 1995/10/22 00:45:54 christos Exp $
# @(#)bsd.README 5.1 (Berkeley) 5/11/90
This is the README file for the new make "include" files for the BSD
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+The include file <bsd.sys.mk> is used by <bsd.prog.mk> and
+<bsd.lib.mk>. It contains a set of rules for lex and yacc that
+can be used when multiple lex and yacc files are present in the
+same directory, and their respective targets are made in parallel.
+Since it renames the yacc output include files these rules are not
+used by default. They can be enabled by setting the PARALLEL variable
+in the Makefile.
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
The include file <bsd.lib.mk> has support for building libraries. It has
the same seven targets as <bsd.prog.mk>: all, clean, cleandir, depend,
install, lint, and tags. It has a limited number of suffixes, consistent
-# $NetBSD: bsd.lib.mk,v 1.65 1995/09/30 12:21:33 pk Exp $
+# $NetBSD: bsd.lib.mk,v 1.66 1995/10/22 00:45:56 christos Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
.if exists(${.CURDIR}/../Makefile.inc)
.include <bsd.obj.mk>
.include <bsd.dep.mk>
.include <bsd.subdir.mk>
+.include <bsd.sys.mk>
-# $NetBSD: bsd.man.mk,v 1.20 1995/06/07 01:15:20 cgd Exp $
+# $NetBSD: bsd.man.mk,v 1.21 1995/11/25 19:53:33 perry Exp $
# @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
MANTARGET?= cat
-NROFF?= nroff
.if !target(.MAIN)
.if exists(${.CURDIR}/../Makefile.inc)
.MAIN: all
.endif
-.SUFFIXES: .1 .2 .3 .4 .5 .6 .7 .8 .cat1 .cat2 .cat3 .cat4 .cat5 .cat6 \
- .cat7 .cat8
+.SUFFIXES: .1 .2 .3 .4 .5 .6 .7 .8 .9 .cat1 .cat2 .cat3 .cat4 .cat5 .cat6 \
+ .cat7 .cat8 .cat9
-.8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3.cat3 .2.cat2 .1.cat1:
- @echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"
- @${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || ( rm -f ${.TARGET} ; false )
+.9.cat9 .8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3.cat3 .2.cat2 .1.cat1:
+ @echo "nroff -mandoc ${.IMPSRC} > ${.TARGET}"
+ @nroff -mandoc ${.IMPSRC} > ${.TARGET} || ( rm -f ${.TARGET} ; false )
.if defined(MAN) && !empty(MAN)
-MANALL= ${MAN:S/.1$/.cat1/g:S/.2$/.cat2/g:S/.3$/.cat3/g:S/.4$/.cat4/g:S/.5$/.cat5/g:S/.6$/.cat6/g:S/.7$/.cat7/g:S/.8$/.cat8/g}
+MANALL= ${MAN:S/.1$/.cat1/g:S/.2$/.cat2/g:S/.3$/.cat3/g:S/.4$/.cat4/g:S/.5$/.cat5/g:S/.6$/.cat6/g:S/.7$/.cat7/g:S/.8$/.cat8/g:S/.9$/.cat9/g}
.endif
MINSTALL= install ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
maninstall:
.if defined(MANALL)
@for page in ${MANALL}; do \
- dir=${DESTDIR}${MANDIR}`expr $$page : '.*\.cat\([1-8]\)'`; \
- instpage=$${dir}${MANSUBDIR}/`expr $$page : '\(.*\)\.cat[1-8]'`.0${MCOMPRESSSUFFIX}; \
+ dir=${DESTDIR}${MANDIR}`expr $$page : '.*\.cat\([1-9]\)'`; \
+ instpage=$${dir}${MANSUBDIR}/`expr $$page : '\(.*\)\.cat[1-9]'`.0${MCOMPRESSSUFFIX}; \
if [ X"${MCOMPRESS}" = X ]; then \
echo ${MINSTALL} $$page $$instpage; \
${MINSTALL} $$page $$instpage; \
-# $NetBSD: bsd.own.mk,v 1.21.2.1 1995/10/12 06:27:48 cgd Exp $
+# $NetBSD: bsd.own.mk,v 1.23 1995/11/03 23:33:33 cgd Exp $
# Defining `SKEY' causes support for S/key authentication to be compiled in.
SKEY= yes
NOPIC=
.endif
-# Alpha doesn't have a working profiling support
-.if (${MACHINE_ARCH} == "alpha")
-NOPROFILE=
-.endif
-
# No lint, for now.
NOLINT=
--- /dev/null
+# $NetBSD: bsd.sys.mk,v 1.1 1995/10/22 00:45:59 christos Exp $
+#
+# Parallel make rule overrides
+
+.if defined(PARALLEL)
+# Lex
+.l:
+ ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} ${.TARGET:R}.yy.c ${LDLIBS} -ll
+ rm -f ${.TARGET:R}.yy.c
+.l.c:
+ ${LEX.l} -o${.TARGET} ${.IMPSRC}
+.l.o:
+ ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
+ ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.yy.c
+ rm -f ${.TARGET:R}.yy.c
+
+# Yacc
+.y:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
+ rm -f ${.TARGET:R}.tab.c
+.y.c:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ mv ${.TARGET:R}.tab.c ${.TARGET}
+.y.o:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
+ rm -f ${.TARGET:R}.tab.c
+.endif