1996-03-10 09:42:54 +01:00
|
|
|
# $Id: Makefile,v 1.6 1996/03/02 20:00:35 peter Exp $
|
1995-06-25 19:32:43 +02:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../sys/i386/linux
|
|
|
|
KMOD= linux_mod
|
1996-01-08 06:36:17 +01:00
|
|
|
SRCS= linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
|
1996-03-02 21:00:35 +01:00
|
|
|
linux_ipc.c linux_socket.c linux_stats.c \
|
|
|
|
linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
|
|
|
|
imgact_linux.c vnode_if.h
|
|
|
|
OBJS= linux_locore.o
|
1995-06-25 19:32:43 +02:00
|
|
|
NOMAN=
|
1996-03-02 21:00:35 +01:00
|
|
|
|
|
|
|
CFLAGS+= -DLKM -I. -DCOMPAT_43 -DCOMPAT_LINUX #-DDEBUG
|
|
|
|
CPPFLAGS= -I. -I${.CURDIR}/../../sys
|
1996-03-10 09:42:54 +01:00
|
|
|
EXPORT_SYMS=_linux_mod
|
1996-03-02 21:00:35 +01:00
|
|
|
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym machine \
|
|
|
|
linux_assym.h
|
|
|
|
|
|
|
|
linux_assym.h: linux_genassym
|
|
|
|
./linux_genassym > linux_assym.h
|
|
|
|
|
|
|
|
linux_locore.o: linux_locore.s linux_assym.h
|
|
|
|
@if [ ! -h machine ]; then ln -s ${.CURDIR}/../../i386/include machine \
|
|
|
|
; fi
|
|
|
|
${CPP} -DLOCORE -DKERNEL ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
|
|
|
|
|
|
|
|
linux_genassym.o: linux_genassym.c linux.h
|
|
|
|
${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
|
|
|
|
|
|
|
|
linux_genassym: linux_genassym.o
|
|
|
|
${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
|
1995-06-25 19:32:43 +02:00
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1996-01-28 00:57:06 +01:00
|
|
|
${.CURDIR}/linux ${DESTDIR}/usr/bin
|
1995-06-25 19:32:43 +02:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|