1.PATH: ${SRCTOP}/sys/compat/linux 2.if ${MACHINE_CPUARCH} == "amd64" 3.PATH: ${SRCTOP}/sys/x86/linux 4.endif 5 6KMOD= linux_common 7SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \ 8 linux_dummy.c linux_errno.c linux_netlink.c \ 9 linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h opt_inet.h 10 11.if ${MACHINE_CPUARCH} == "amd64" 12SRCS+= linux_x86.c linux_vdso_selector_x86.c 13.endif 14 15EXPORT_SYMS= 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