summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-30 20:56:37 +0000
committerbde <bde@FreeBSD.org>1997-04-30 20:56:37 +0000
commitb07e05ad3fad71798c638c1e41383d3846787e26 (patch)
tree20bb1001e829b06ddca6aafac15427f7bbabf9a8 /share/mk
parent354d1e72c96d56e85f42962ff84e968e34640b1f (diff)
downloadFreeBSD-src-b07e05ad3fad71798c638c1e41383d3846787e26.zip
FreeBSD-src-b07e05ad3fad71798c638c1e41383d3846787e26.tar.gz
Fixed the SMP fixes:
- fixed dependencies so that `make depend' isn't necessary. - added new files to CLEANFILES. - fixed style.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.kmod.mk17
1 files changed, 10 insertions, 7 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index ef481ac..e4a67dc 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.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)
OpenPOWER on IntegriCloud