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_get_osname 20EXPORT_SYMS+= linux_get_osrelease 21EXPORT_SYMS+= linux_use_real_ifname 22 23.if !defined(KERNBUILDDIR) 24.warning Building Linuxulator outside of a kernel does not make sense 25.endif 26 27EXPORT_SYMS= YES 28 29.include <bsd.kmod.mk> 30