NetBSD/sys/lkm/exec/linux_elf/Makefile
2001-12-12 11:44:43 +00:00

29 lines
692 B
Makefile

# $NetBSD: Makefile,v 1.3 2001/12/12 11:49:06 lukem Exp $
.include "../Makefile.inc"
.PATH: $S/compat/linux/common
CPPFLAGS+= -nostdinc -I$S -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
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>