c93d4a7bde
FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC flag, introduced in r302515. While here move common part of mmap() and mprotect() code to the files in compat/linux to reduce code dupcliation between Linuxulator's. Reported by: Johannes Jost Meixner, Shawn Webb MFC after: 1 week XMFC with: r302515, r302516
26 lines
534 B
Makefile
26 lines
534 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../compat/linux
|
|
|
|
KMOD= linux_common
|
|
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
|
|
linux.c opt_compat.h device_if.h vnode_if.h bus_if.h
|
|
|
|
EXPORT_SYMS=
|
|
EXPORT_SYMS+= linux_emul_path
|
|
EXPORT_SYMS+= linux_ioctl_register_handler
|
|
EXPORT_SYMS+= linux_ioctl_unregister_handler
|
|
EXPORT_SYMS+= linux_get_osname
|
|
EXPORT_SYMS+= linux_get_osrelease
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
.if defined(DEBUG)
|
|
CFLAGS+=-DDEBUG
|
|
.endif
|
|
.if defined(KTR)
|
|
CFLAGS+=-DKTR
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|