1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/x86/linux 4 5KMOD= linux_common 6SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \ 7 linux_dummy.c linux_errno.c \ 8 linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h 9 10.if ${MACHINE_CPUARCH} == "amd64" 11SRCS+= linux_x86.c linux_vdso_selector_x86.c 12.endif 13 14EXPORT_SYMS= 15EXPORT_SYMS+= linux_emul_path 16EXPORT_SYMS+= linux_get_osname 17EXPORT_SYMS+= linux_get_osrelease 18EXPORT_SYMS+= linux_use_real_ifname 19 20.if !defined(KERNBUILDDIR) 21.warning Building Linuxulator outside of a kernel does not make sense 22.endif 23 24EXPORT_SYMS= YES 25 26.include <bsd.kmod.mk> 27