summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/kmod.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 1bde99f..a795728 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -422,6 +422,9 @@ acpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
.if !empty(SRCS:Massym.s)
CLEANFILES+= assym.s genassym.o
assym.s: genassym.o
+.if defined(KERNBUILDDIR)
+genassym.o: opt_global.h
+.endif
.if !exists(@)
assym.s: @
.else
@@ -439,6 +442,10 @@ genassym.o: @ machine ${SRCS:Mopt_*.h}
lint: ${SRCS}
${LINT} ${LINTKERNFLAGS} ${CFLAGS:M-[DILU]*} ${.ALLSRC:M*.c}
+.if defined(KERNBUILDDIR)
+${OBJS}: opt_global.h
+.endif
+
.include <bsd.dep.mk>
cleandepend: cleanilinks
OpenPOWER on IntegriCloud