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