summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-02 05:08:09 +0000
committermsmith <msmith@FreeBSD.org>1998-10-02 05:08:09 +0000
commit7d178bc52e7f2ca09e37c9528dba5b77596d8908 (patch)
tree88446d8df678228ab88eff7b181361954632c49b /share/mk/bsd.kmod.mk
parent51d91e56f120b609831461babea902d61e019803 (diff)
downloadFreeBSD-src-7d178bc52e7f2ca09e37c9528dba5b77596d8908.zip
FreeBSD-src-7d178bc52e7f2ca09e37c9528dba5b77596d8908.tar.gz
Define KLD_MODULE if building a KLD module.
Forgot to mention that the previous commit was Submitted by: Doug Rabson <dfr@freebsd.org>
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index fa3ba95..3c529ba 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.52 1998/09/02 14:29:09 bde Exp $
+# $Id: bsd.kmod.mk,v 1.53 1998/10/02 04:51:10 msmith Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
#
@@ -93,6 +93,9 @@ __initialized__:
.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S
CFLAGS+= ${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL ${CWARNFLAGS}
+.if defined(KLDMOD)
+CFLAGS+= -DKLD_MODULE
+.endif
# Don't use any standard or source-relative include directories.
# Since -nostdinc will annull any previous -I paths, we repeat all
OpenPOWER on IntegriCloud