aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-10-02 05:08:09 +0000
committerMike Smith <msmith@FreeBSD.org>1998-10-02 05:08:09 +0000
commit8fe644b289c2ad2d5e617e86f2fa75308c51f09f (patch)
tree1bcc521dfcf996581ee78568cda3e7afaab2791d /share/mk/bsd.kmod.mk
parent90f60fc9bc41cc389c948ef561b8854e7021ce81 (diff)
downloadsrc-8fe644b289c2ad2d5e617e86f2fa75308c51f09f.tar.gz
src-8fe644b289c2ad2d5e617e86f2fa75308c51f09f.zip
Define KLD_MODULE if building a KLD module.
Forgot to mention that the previous commit was Submitted by: Doug Rabson <dfr@freebsd.org>
Notes
Notes: svn path=/head/; revision=39883
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 fa3ba95be18f..3c529baa920d 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