diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 1904f2209fa9..d78f8dec152c 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -108,7 +108,7 @@ SUBDIR=	\
 	fdc \
 	fdescfs \
 	${_fe} \
-	filemon \
+	${_filemon} \
 	firewire \
 	firmware \
 	${_fxp} \
@@ -364,6 +364,10 @@ SUBDIR=	\
 	${_zfs} \
 	zlib \
 
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+_filemon=	filemon
+.endif
+
 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
 	${MACHINE_CPUARCH} != "mips"
 _syscons=	syscons