19278a71d3
it for the other machine types which traverse this directory.
35 lines
835 B
Makefile
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>
|