NetBSD/sys/lkm/exec/freebsd_elf/Makefile
jdolecek 6665bd7a9d add compat_util.c goo so that this doesn't depend on emul_find()
being available in the running kernel
2000-12-17 16:21:12 +00:00

26 lines
596 B
Makefile

# $NetBSD: Makefile,v 1.2 2000/12/17 16:21:12 jdolecek Exp $
.include "../Makefile.inc"
.PATH: $S/compat/freebsd
CPPFLAGS+= -nostdinc -I$S -D_KERNEL -DEXEC_ELF32
MKMAN= no
KMOD= exec_freebsd_elf
SRCS= lkminit_exec.c
SRCS+= freebsd_exec_elf32.c
# compat_util.c symbol redifinitions
CPPFLAGS+= -Demul_find=freebsd_emul_find \
-Dstackgap_init=freebsd_stackgap_init \
-Demul_flags_translate=freebsd_emul_flags_translate \
-Dstackgap_alloc=freebsd_stackgap_alloc \
-Dcompat_offseterr=freebsd_compat_offseterr
.PATH: $S/compat/common
SRCS+= compat_util.c
.include <bsd.kmod.mk>