diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-01 10:17:54 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-01 10:17:54 +0000 |
commit | c02a27bdb202eb0e86b48ea2cbae9805928417ba (patch) | |
tree | 4ccbd1c8d27a915e7f4f4b3efa32f24d592fd7d5 /share/mk/bsd.lkm.mk | |
parent | f0fbaa5782c0523863b51618221756bf8ea4ccde (diff) |
Support BSDSRCDIR setups
Diffstat (limited to 'share/mk/bsd.lkm.mk')
-rw-r--r-- | share/mk/bsd.lkm.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.lkm.mk b/share/mk/bsd.lkm.mk index 658adb91742..43696da019f 100644 --- a/share/mk/bsd.lkm.mk +++ b/share/mk/bsd.lkm.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lkm.mk,v 1.7 1996/06/03 04:01:15 mickey Exp $ +# $OpenBSD: bsd.lkm.mk,v 1.8 1996/08/01 10:17:53 niklas Exp $ # from @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 .if exists(${.CURDIR}/../Makefile.inc) @@ -9,7 +9,11 @@ .SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0 +.if defined(BSDSRCDIR) +CFLAGS+= ${COPTS} -D_KERNEL -I${BSDSRCDIR}/sys -I${BSDSRCDIR}/sys/arch +.else CFLAGS+= ${COPTS} -D_KERNEL -I/sys -I/sys/arch +.endif LDFLAGS+= -r .if defined(LKM) |