POSTINSTALL added to the <bsd.lkm.mk> (see bsd.README for details).
-# $OpenBSD: Makefile,v 1.3 1996/02/25 19:02:30 mickey Exp $
+# $OpenBSD: Makefile,v 1.4 1996/03/05 11:12:30 mickey Exp $
+# $NetBSD: Makefile,v 1.12 1995/10/22 00:45:53 christos Exp $
# @(#)Makefile 5.3 (Berkeley) 6/22/90
FILES= bsd.README bsd.doc.mk bsd.dep.mk bsd.lib.mk bsd.man.mk bsd.nls.mk \
-# $OpenBSD: bsd.README,v 1.6 1996/02/25 19:02:31 mickey Exp $
+# $OpenBSD: bsd.README,v 1.7 1996/03/05 11:12:34 mickey Exp $
+# $NetBSD: bsd.README,v 1.15 1996/01/22 22:46:06 cgd Exp $
# @(#)bsd.README 5.1 (Berkeley) 5/11/90
This is the README file for the new make "include" files for the BSD
LKMMODE Module mode.
+POSTINSTALL Program to pass with '-p' flag to the modload.
+ If not defined,
+ POSTINSTALL=${LKM}install
+ is assumed.
+
The include file <bsd.lkm.mk> includes the file named "../Makefile.inc"
if it exists, as well as the include file <bsd.man.mk>.
-# $OpenBSD: bsd.dep.mk,v 1.2 1996/02/25 19:02:32 mickey Exp $
+# $OpenBSD: bsd.dep.mk,v 1.3 1996/03/05 11:12:37 mickey Exp $
+# $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $
# some of the rules involve .h sources, so remove them from mkdep line
.if !target(depend)
-# $OpenBSD: bsd.doc.mk,v 1.2 1996/02/25 19:02:32 mickey Exp $
+# $OpenBSD: bsd.doc.mk,v 1.3 1996/03/05 11:12:39 mickey Exp $
+# $NetBSD: bsd.doc.mk,v 1.20 1994/07/26 19:42:37 mycroft Exp $
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
BIB?= bib
-# $OpenBSD: bsd.lib.mk,v 1.4 1996/02/25 19:02:33 mickey Exp $
+# $OpenBSD: bsd.lib.mk,v 1.5 1996/03/05 11:12:41 mickey Exp $
+# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
.if exists(${.CURDIR}/../Makefile.inc)
-# $OpenBSD: bsd.lkm.mk,v 1.2 1996/03/02 21:01:23 tholo Exp $
-# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
+# $OpenBSD: bsd.lkm.mk,v 1.3 1996/03/05 11:12:45 mickey Exp $
+# from @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
.endif
COMBINED?=combined.o
+.if !defined(POSTINSTALL)
+POSTINSTALL= ${LKM}install
+.endif
.if defined(OBJS) && !empty(OBJS)
load: ${COMBINED}
- modload -d -o $(LKM) -e$(LKM) $(COMBINED)
+ if [ -x ${.CURDIR}/${POSTINSTALL} ]; then \
+ modload -d -o $(LKM) -e$(LKM) -p${.CURDIR}/${POSTINSTALL} $(COMBINED); \
+ else \
+ modload -d -o $(LKM) -e$(LKM) $(COMBINED); \
+ fi
unload:
modunload -n $(LKM)
-# $OpenBSD: bsd.man.mk,v 1.7 1996/02/25 19:02:34 mickey Exp $
+# $OpenBSD: bsd.man.mk,v 1.8 1996/03/05 11:12:48 mickey Exp $
+# $NetBSD: bsd.man.mk,v 1.23 1996/02/10 07:49:33 jtc Exp $
# @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
MANTARGET?= cat
-# $OpenBSD: bsd.nls.mk,v 1.2 1996/02/25 19:02:35 mickey Exp $
+# $OpenBSD: bsd.nls.mk,v 1.3 1996/03/05 11:12:50 mickey Exp $
+# $NetBSD: bsd.nls.mk,v 1.2 1995/04/27 18:05:38 jtc Exp $
.if !target(.MAIN)
.if exists(${.CURDIR}/../Makefile.inc)
-# $NetBSD: bsd.obj.mk,v 1.7 1995/06/10 20:46:35 mycroft Exp $
+# $OpenBSD: bsd.obj.mk,v 1.2 1996/03/05 11:12:53 mickey Exp $
+# $NetBSD: bsd.obj.mk,v 1.8 1996/02/21 10:02:00 pk Exp $
.if !target(obj)
.if defined(NOOBJ)
obj: _SUBDIRUSE
@cd ${.CURDIR}; rm -f ${__objdir} > /dev/null 2>&1 || true; \
- here=`pwd`; subdir=`echo $$here | sed 's,^${BSDSRCDIR}/,,'`; \
+ here=`pwd`; subdir=$${here#${BSDSRCDIR}/}; \
if test $$here != $$subdir ; then \
dest=${__usrobjdir}/$$subdir${__usrobjdirpf} ; \
echo "$$here/${__objdir} -> $$dest"; \
-# $OpenBSD: bsd.own.mk,v 1.5 1996/03/02 21:01:24 tholo Exp $
+# $OpenBSD: bsd.own.mk,v 1.6 1996/03/05 11:12:56 mickey Exp $
+# $NetBSD: bsd.own.mk,v 1.23 1995/11/03 23:33:33 cgd Exp $
# Defining `SKEY' causes support for S/key authentication to be compiled in.
SKEY= yes
+# $OpenBSD: bsd.prog.mk,v 1.2 1996/03/05 11:12:59 mickey Exp $
# $NetBSD: bsd.prog.mk,v 1.53 1995/06/25 22:29:02 cgd Exp $
# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $OpenBSD: bsd.subdir.mk,v 1.4 1996/02/25 19:02:36 mickey Exp $
+# $OpenBSD: bsd.subdir.mk,v 1.5 1996/03/05 11:13:01 mickey Exp $
+# $NetBSD: bsd.subdir.mk,v 1.10 1995/07/24 04:22:29 cgd Exp $
# @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
.if !target(.MAIN)
-# $OpenBSD: bsd.sys.mk,v 1.4 1996/02/25 19:02:36 mickey Exp $
-#
+# $OpenBSD: bsd.sys.mk,v 1.5 1996/03/05 11:13:04 mickey Exp $
+# $NetBSD: bsd.sys.mk,v 1.2 1995/12/13 01:25:07 cgd Exp $
# Overrides used for NetBSD source tree builds.
#CFLAGS+= -Werror
-# $OpenBSD: sys.mk,v 1.3 1996/02/25 19:02:37 mickey Exp $
+# $OpenBSD: sys.mk,v 1.4 1996/03/05 11:13:06 mickey Exp $
+# $NetBSD: sys.mk,v 1.22 1995/09/24 23:49:09 christos Exp $
# @(#)sys.mk 5.11 (Berkeley) 3/13/91
unix= We run OpenBSD.