summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.README12
-rw-r--r--share/mk/bsd.lib.mk4
-rw-r--r--share/mk/bsd.lkm.mk6
-rw-r--r--share/mk/bsd.prog.mk4
4 files changed, 18 insertions, 8 deletions
diff --git a/share/mk/bsd.README b/share/mk/bsd.README
index 8eddee5b0d7..6caacb7e1e8 100644
--- a/share/mk/bsd.README
+++ b/share/mk/bsd.README
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.README,v 1.18 1998/12/19 05:13:02 millert Exp $
+# $OpenBSD: bsd.README,v 1.19 1998/12/19 19:07:32 millert Exp $
# $NetBSD: bsd.README,v 1.17 1996/04/13 02:08:08 thorpej Exp $
# @(#)bsd.README 5.1 (Berkeley) 5/11/90
@@ -219,6 +219,16 @@ NOLINT Do not build lint libraries. [set, set unconditionally]
DEBUG Add -g to assembly and C compiler passes. Also doesn't
set STRIP to -s per default if defined.
+SUDO Command to run when doing "make install" portion of
+ "make build". If set to sudo, this allows one to run
+ "make build" as a user other than root (assuming sudo
+ is setup for that user).
+
+PIPE If set to "-pipe" gcc will be given the -pipe option
+ which can speed up compiles on machines with memory
+ to spare. Instead of using temp files, gcc uses pipes
+ for the temporary data.
+
bsd.own.mk is generally useful when building your own Makefiles so that
they use the same default owners etc. as the rest of the tree.
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index ea4542d122e..8913ebf0326 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.16 1997/11/05 09:51:06 deraadt Exp $
+# $OpenBSD: bsd.lib.mk,v 1.17 1998/12/19 19:07:33 millert Exp $
# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
@@ -83,7 +83,7 @@ SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
-CFLAGS+= ${COPTS}
+CFLAGS+= ${COPTS} ${PIPE}
.if !defined(PICFLAG) && (${MACHINE_ARCH} != "mips")
PICFLAG=-fpic
diff --git a/share/mk/bsd.lkm.mk b/share/mk/bsd.lkm.mk
index 90b65f5cd1d..65f315dfe86 100644
--- a/share/mk/bsd.lkm.mk
+++ b/share/mk/bsd.lkm.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lkm.mk,v 1.12 1997/04/27 21:38:29 millert Exp $
+# $OpenBSD: bsd.lkm.mk,v 1.13 1998/12/19 19:07:33 millert Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -12,9 +12,9 @@
# to the tree we're actually belonging to we check BSDSRCDIR. On multi-tree
# machines /sys isn't always a link to the correct tree.
.if defined(BSDSRCDIR)
-CFLAGS+= ${COPTS} -D_KERNEL -I${BSDSRCDIR}/sys -I${BSDSRCDIR}/sys/arch
+CFLAGS+= ${COPTS} ${PIPE} -D_KERNEL -I${BSDSRCDIR}/sys -I${BSDSRCDIR}/sys/arch
.else
-CFLAGS+= ${COPTS} -D_KERNEL -I/sys -I/sys/arch
+CFLAGS+= ${COPTS} ${PIPE} -D_KERNEL -I/sys -I/sys/arch
.endif
LDFLAGS+= -r
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 13c90fa89cc..adcbc26a7be 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.prog.mk,v 1.16 1998/07/27 21:11:33 niklas Exp $
+# $OpenBSD: bsd.prog.mk,v 1.17 1998/12/19 19:07:34 millert Exp $
# $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $
# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
@@ -10,7 +10,7 @@
.SUFFIXES: .out .o .c .cc .C .cxx .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
-CFLAGS+= ${COPTS}
+CFLAGS+= ${COPTS} ${PIPE}
.if (${MACHINE_ARCH} == "powerpc")
CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o