1# $Id: Makefile,v 1.6 1996/03/02 20:00:35 peter Exp $ 2 3.PATH: ${.CURDIR}/../../sys/i386/linux 4KMOD= linux_mod 5SRCS= linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \ 6 linux_ipc.c linux_socket.c linux_stats.c \ 7 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ 8 imgact_linux.c vnode_if.h 9OBJS= linux_locore.o 10NOMAN= 11 12CFLAGS+= -DLKM -I. -DCOMPAT_43 -DCOMPAT_LINUX #-DDEBUG 13CPPFLAGS= -I. -I${.CURDIR}/../../sys 14EXPORT_SYMS=_linux_mod 15CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym machine \ 16 linux_assym.h 17 18linux_assym.h: linux_genassym 19 ./linux_genassym > linux_assym.h 20 21linux_locore.o: linux_locore.s linux_assym.h 22 @if [ ! -h machine ]; then ln -s ${.CURDIR}/../../i386/include machine \ 23 ; fi 24 ${CPP} -DLOCORE -DKERNEL ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} 25 26linux_genassym.o: linux_genassym.c linux.h 27 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC} 28 29linux_genassym: linux_genassym.o 30 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 31 32afterinstall: 33 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 34 ${.CURDIR}/linux ${DESTDIR}/usr/bin 35 36.include <bsd.kmod.mk> 37