summaryrefslogtreecommitdiff
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-07-18 13:23:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-07-18 13:23:04 +0000
commit004cee8dd3a6ac2206b317f142102ec70ff8b2f4 (patch)
tree5579cd6cff0f5ab2724760a6af27002a82038ba8 /share/mk/bsd.prog.mk
parent1b9e8efd6e3c626840081750789297daf99ccb76 (diff)
CDIAGFLAGS, added to CFLAGS if WARNINGS=Yes
Symetrize C++ situation: add CXXOPTS, CXXDIAGFLAGS.
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index dfc5a79bd00..7ceb75684bc 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.prog.mk,v 1.23 2001/01/31 06:41:18 art Exp $
+# $OpenBSD: bsd.prog.mk,v 1.24 2001/07/18 13:23:03 espie 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,12 @@
.SUFFIXES: .out .o .c .cc .C .cxx .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
+.if ${WARNINGS:L} == "yes"
+CFLAGS+= ${CDIAGFLAGS}
+CXXFLAGS+= ${CXXDIAGFLAGS}
+.endif
CFLAGS+= ${COPTS}
+CXXFLAGS+= ${CXXOPTS}
.if (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "alpha")
CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o