diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index ef481acb407..e4a67dc9d56 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 handles installing Loadable Kernel Modules. # 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 .if !defined(_MANPAGES) || empty(_MANPAGES) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index ef481acb407..e4a67dc9d56 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.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 handles installing Loadable Kernel Modules. # 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 .if !defined(_MANPAGES) || empty(_MANPAGES)