1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/linux 4 5MAINTAINER= marcel@FreeBSD.org 6 7KMOD= linux 8SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \ 9 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 15# CFLAGS+= -DDEBUG 16EXPORT_SYMS=_linux_mod 17CLEANFILES= linux_assym.h linux_genassym.o 18 19linux_assym.h: linux_genassym.o 20 genassym ${.ALLSRC} > ${.TARGET} 21 22linux_locore.o: linux_locore.s linux_assym.h 23 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 24 ${.IMPSRC} -o ${.TARGET} 25 26linux_genassym.o: linux_genassym.c linux.h @ machine 27 ${CC} -c ${CFLAGS} ${.IMPSRC} 28 29opt_compat.h: 30 echo "#define COMPAT_43 1" > opt_compat.h 31 32afterinstall: 33 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 34 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux 35 36.include <bsd.kmod.mk> 37