summaryrefslogtreecommitdiff
path: root/share/mk/bsd.lkm.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.lkm.mk
parent1b9e8efd6e3c626840081750789297daf99ccb76 (diff)
CDIAGFLAGS, added to CFLAGS if WARNINGS=Yes
Symetrize C++ situation: add CXXOPTS, CXXDIAGFLAGS.
Diffstat (limited to 'share/mk/bsd.lkm.mk')
-rw-r--r--share/mk/bsd.lkm.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.lkm.mk b/share/mk/bsd.lkm.mk
index 036bb97f356..b2f97094b6b 100644
--- a/share/mk/bsd.lkm.mk
+++ b/share/mk/bsd.lkm.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lkm.mk,v 1.16 2001/04/03 23:00:09 espie Exp $
+# $OpenBSD: bsd.lkm.mk,v 1.17 2001/07/18 13:23:03 espie Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -16,6 +16,9 @@ CFLAGS+= ${COPTS} -D_KERNEL -D_LKM -I${BSDSRCDIR}/sys -I${BSDSRCDIR}/sys/arch
.else
CFLAGS+= ${COPTS} -D_KERNEL -D_LKM -I/sys -I/sys/arch
.endif
+.if ${WARNINGS:L} == "yes"
+CFLAGS+= ${CDIAGFLAGS}
+.endif
LDFLAGS+= -r
.if defined(LKM)