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