1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux 4 5KMOD= linux 6SRCS= linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ 7 linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \ 8 linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \ 9 linux_util.c opt_inet6.h opt_mac.h \ 10 vnode_if.h 11OBJS= linux_locore.o 12 13.if ${MACHINE_ARCH} == "i386" 14SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h 15.endif 16 17EXPORT_SYMS= 18EXPORT_SYMS+= linux_emul_path 19EXPORT_SYMS+= linux_get_osname 20EXPORT_SYMS+= linux_get_osrelease 21EXPORT_SYMS+= linux_ifname 22EXPORT_SYMS+= linux_ioctl_register_handler 23EXPORT_SYMS+= linux_ioctl_unregister_handler 24 25CLEANFILES= linux_assym.h linux_genassym.o 26 27linux_assym.h: linux_genassym.o 28.if exists(@) 29linux_assym.h: @/kern/genassym.sh 30.endif 31 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET} 32 33linux_locore.o: linux_locore.s linux_assym.h 34 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 35 ${.IMPSRC} -o ${.TARGET} 36 37linux_genassym.o: linux_genassym.c linux.h @ machine 38 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 39 40.if !defined(KERNBUILDDIR) 41opt_inet6.h: 42 echo "#define INET6 1" > opt_inet6.h 43.endif 44 45.include <bsd.kmod.mk> 46