diff --git a/sys/lkm/exec/linux_elf/Makefile b/sys/lkm/exec/linux_elf/Makefile index 9e197c9d47c1..e2a2ed9d5404 100644 --- a/sys/lkm/exec/linux_elf/Makefile +++ b/sys/lkm/exec/linux_elf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2004/11/13 06:09:47 christos Exp $ +# $NetBSD: Makefile,v 1.7 2004/11/14 12:19:28 he Exp $ .include "../Makefile.inc" @@ -9,7 +9,11 @@ CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64 KMOD= exec_linux_elf -SRCS= lkminit_exec.c linux_exec_machdep.c +SRCS= lkminit_exec.c + +.if ${MACHINE} == "i386" +SRCS+= linux_exec_machdep.c +.endif .if ${MACHINE} == "alpha" || ${MACHINE} == "sparc64" SRCS+= linux_exec_elf64.c