NetBSD/sys/lkm/exec/linux_elf/Makefile
he 19278a71d3 Um, linux_exec_machdep.c only exists on i386, so don't try to compile
it for the other machine types which traverse this directory.
2004-11-14 12:19:28 +00:00

35 lines
835 B
Makefile

# $NetBSD: Makefile,v 1.7 2004/11/14 12:19:28 he Exp $
.include "../Makefile.inc"
.PATH: $S/compat/linux/common
.PATH: $S/compat/linux/arch/${MACHINE_ARCH}
CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
KMOD= exec_linux_elf
SRCS= lkminit_exec.c
.if ${MACHINE} == "i386"
SRCS+= linux_exec_machdep.c
.endif
.if ${MACHINE} == "alpha" || ${MACHINE} == "sparc64"
SRCS+= linux_exec_elf64.c
.else
SRCS+= linux_exec_elf32.c
.endif
# compat_util.c symbol redifinitions
CPPFLAGS+= -Demul_find=linux_elf_emul_find \
-Demul_find_interp=linux_emul_find_interp \
-Dstackgap_init=linux_stackgap_init \
-Demul_flags_translate=linux_elf_emul_flags_translate \
-Dstackgap_alloc=linux_elf_stackgap_alloc \
-Dcompat_offseterr=linux_elf_compat_offseterr
.PATH: $S/compat/common
SRCS+= compat_util.c
.include <bsd.kmod.mk>