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_socket.c linux_stats.c linux_mib.c \ 10 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ 11 opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h 12OBJS= linux_locore.o 13MAN8= linux.8 14 15.if ${MACHINE_ARCH} != "alpha" 16SRCS+= imgact_linux.c linux_ipc.c 17.endif 18 19EXPORT_SYMS=_linux_mod 20CLEANFILES= linux_assym.h linux_genassym.o 21 22linux_assym.h: linux_genassym.o 23.if exists(@) 24linux_assym.h: @/kern/genassym.sh 25.endif 26 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET} 27 28linux_locore.o: linux_locore.s linux_assym.h 29 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 30 ${.IMPSRC} -o ${.TARGET} 31 32linux_genassym.o: linux_genassym.c linux.h @ machine 33 ${CC} -c ${CFLAGS} ${.IMPSRC} 34 35opt_compat.h: 36 echo "#define COMPAT_43 1" > opt_compat.h 37 38afterinstall: 39 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 40 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux 41 42.include <bsd.kmod.mk> 43