1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux 4 5MAINTAINER= marcel@FreeBSD.org 6 7KMOD= linux 8SRCS= linux_file.c linux_ioctl.c linux_machdep.c linux_misc.c \ 9 linux_signal.c linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \ 10 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ 11 imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h 12OBJS= linux_locore.o 13MAN8= linux.8 14 15EXPORT_SYMS=_linux_mod 16CLEANFILES= linux_assym.h linux_genassym.o 17 18linux_assym.h: linux_genassym.o 19.if exists(@) 20linux_assym.h: @/kern/genassym.sh 21.endif 22 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET} 23 24linux_locore.o: linux_locore.s linux_assym.h 25 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 26 ${.IMPSRC} -o ${.TARGET} 27 28linux_genassym.o: linux_genassym.c linux.h @ machine 29 ${CC} -c ${CFLAGS} ${.IMPSRC} 30 31opt_compat.h: 32 echo "#define COMPAT_43 1" > opt_compat.h 33 34afterinstall: 35 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 36 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux 37 38.include <bsd.kmod.mk> 39