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