31 lines
706 B
Makefile
31 lines
706 B
Makefile
|
# $NetBSD: Makefile,v 1.1 2000/12/08 23:05:40 jdolecek Exp $
|
||
|
|
||
|
.include "../Makefile.inc"
|
||
|
|
||
|
.PATH: $S/compat/linux/common
|
||
|
|
||
|
CPPFLAGS+= -nostdinc -I$S -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
|
||
|
|
||
|
MKMAN= no
|
||
|
|
||
|
KMOD= exec_linux_elf
|
||
|
|
||
|
SRCS= lkminit_exec.c
|
||
|
|
||
|
.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 \
|
||
|
-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>
|