Fixed the SMP fixes:

- fixed dependencies so that `make depend' isn't necessary.
- added new files to CLEANFILES.
- fixed style.
This commit is contained in:
Bruce Evans 1997-04-30 20:56:37 +00:00
parent 9970814b3e
commit 035e8553c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25323
2 changed files with 20 additions and 14 deletions

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.32 1997/04/28 00:02:22 fsmp Exp $
# $Id: bsd.kmod.mk,v 1.33 1997/04/30 06:04:17 ache Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -96,14 +96,14 @@ MODUNLOAD?= /sbin/modunload
#
# A temporary fix to survive SMP changes.
#
CFLAGS+= -I.
beforedepend: opt_smp.h opt_smp_invltlb.h
CFLAGS+= -I.
CLEANFILES= ${SMPHDRS}
SMPHDRS= opt_smp.h opt_smp_invltlb.h
opt_smp.h:
touch opt_smp.h
beforedepend: ${SMPHDRS}
opt_smp_invltlb.h:
touch opt_smp_invltlb.h
${SMPHDRS}:
touch ${.TARGET}
#
# Assume that we are in /usr/src/foo/bar, so /sys is
@ -142,6 +142,9 @@ ${PROG}: ${DPSRCS} ${OBJS} ${DPADD}
.endif
mv tmp.o ${.TARGET}
# Temporary SMP fix continued.
${OBJS}: ${SMPHDRS}
.if !defined(NOMAN)
.include <bsd.man.mk>
.if !defined(_MANPAGES) || empty(_MANPAGES)

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.32 1997/04/28 00:02:22 fsmp Exp $
# $Id: bsd.kmod.mk,v 1.33 1997/04/30 06:04:17 ache Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -96,14 +96,14 @@ MODUNLOAD?= /sbin/modunload
#
# A temporary fix to survive SMP changes.
#
CFLAGS+= -I.
beforedepend: opt_smp.h opt_smp_invltlb.h
CFLAGS+= -I.
CLEANFILES= ${SMPHDRS}
SMPHDRS= opt_smp.h opt_smp_invltlb.h
opt_smp.h:
touch opt_smp.h
beforedepend: ${SMPHDRS}
opt_smp_invltlb.h:
touch opt_smp_invltlb.h
${SMPHDRS}:
touch ${.TARGET}
#
# Assume that we are in /usr/src/foo/bar, so /sys is
@ -142,6 +142,9 @@ ${PROG}: ${DPSRCS} ${OBJS} ${DPADD}
.endif
mv tmp.o ${.TARGET}
# Temporary SMP fix continued.
${OBJS}: ${SMPHDRS}
.if !defined(NOMAN)
.include <bsd.man.mk>
.if !defined(_MANPAGES) || empty(_MANPAGES)