1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../i386/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+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \ 18 linux_assym.h opt_compat.h opt_linux.h opt_vmpage.h 19 20build-tools: linux_genassym 21 22linux_assym.h: linux_genassym 23 ./linux_genassym > linux_assym.h 24 25linux_locore.o: linux_locore.s linux_assym.h 26 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \ 27 ${.IMPSRC} -o ${.TARGET} 28 29linux_genassym.o: linux_genassym.c linux.h @ machine 30 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC} 31 32linux_genassym: linux_genassym.o 33 ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} 34 35opt_compat.h: 36 echo "#define COMPAT_43 1" > opt_compat.h 37 38opt_linux.h opt_vmpage.h: 39 touch ${.TARGET} 40 41afterinstall: 42 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 43 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux 44 45.include <bsd.kmod.mk> 46