blob: 52eeaac82105a0c9e08179a2e09bf67f9d8f871c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $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>
|