NetBSD/sys/lkm/exec/svr4_elf/Makefile

31 lines
691 B
Makefile

# $NetBSD: Makefile,v 1.5 2001/12/12 11:49:08 lukem Exp $
.include "../Makefile.inc"
.if ${MACHINE} == sparc64 && ${MACHINE_ARCH} == sparc64
ELFSIZE=64
.else
ELFSIZE=32
.endif
.PATH: $S/compat/svr4
CPPFLAGS+= -nostdinc -I$S -D_KERNEL -DEXEC_ELF${ELFSIZE} \
-DELFSIZE=${ELFSIZE}
KMOD= exec_svr4_elf
SRCS= lkminit_exec.c
SRCS+= svr4_exec_elf${ELFSIZE}.c
# compat_util.c symbol redifinitions
CPPFLAGS+= -Demul_find=svr4_emul_find \
-Dstackgap_init=svr4_stackgap_init \
-Demul_flags_translate=svr4_emul_flags_translate \
-Dstackgap_alloc=svr4_stackgap_alloc \
-Dcompat_offseterr=svr4_compat_offseterr
.PATH: $S/compat/common
SRCS+= compat_util.c
.include <bsd.kmod.mk>