From 27a15c94ede5ae1f6d81d843782520096a673c0c Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Mon, 20 Mar 1995 19:18:51 +0000 Subject: [PATCH] Add support for pseudo-device LKMs. --- share/mk/bsd.kmod.mk | 6 +++++- sys/conf/kmod.mk | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index ff3db37923b1..d913b368a802 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.9 1995/02/08 21:35:26 bde Exp $ +# $Id: bsd.kmod.mk,v 1.10 1995/02/25 20:51:11 phk Exp $ .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -24,6 +24,10 @@ SRCS+= vnode_if.h CLEANFILES+= vnode_if.h vnode_if.c .endif +.if defined(PSEUDO_LKM) +CFLAGS+= -DPSEUDO_LKM +.endif + DPSRCS+= ${SRCS:M*.h} OBJS+= ${SRCS:N*.h:R:S/$/.o/g} diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index ff3db37923b1..d913b368a802 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -1,5 +1,5 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $Id: bsd.kmod.mk,v 1.9 1995/02/08 21:35:26 bde Exp $ +# $Id: bsd.kmod.mk,v 1.10 1995/02/25 20:51:11 phk Exp $ .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -24,6 +24,10 @@ SRCS+= vnode_if.h CLEANFILES+= vnode_if.h vnode_if.c .endif +.if defined(PSEUDO_LKM) +CFLAGS+= -DPSEUDO_LKM +.endif + DPSRCS+= ${SRCS:M*.h} OBJS+= ${SRCS:N*.h:R:S/$/.o/g}