1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1995-06-25 13:32:43 -04:00
|
|
|
|
1999-11-12 15:04:59 -05:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/linux
|
1999-08-28 05:04:21 -04:00
|
|
|
|
|
|
|
|
MAINTAINER= marcel@FreeBSD.org
|
|
|
|
|
|
1998-10-16 00:30:52 -04:00
|
|
|
KMOD= linux
|
|
|
|
|
SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
|
1999-08-27 15:47:41 -04:00
|
|
|
linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \
|
1996-03-02 15:00:35 -05:00
|
|
|
linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
|
1998-07-01 13:10:00 -04:00
|
|
|
imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
|
1996-03-02 15:00:35 -05:00
|
|
|
OBJS= linux_locore.o
|
1997-01-10 00:48:50 -05:00
|
|
|
MAN8= linux.8
|
1996-03-02 15:00:35 -05:00
|
|
|
|
1999-08-28 05:04:21 -04:00
|
|
|
# CFLAGS+= -DDEBUG
|
1996-03-10 03:42:54 -05:00
|
|
|
EXPORT_SYMS=_linux_mod
|
1999-12-23 14:59:47 -05:00
|
|
|
CLEANFILES= linux_assym.h linux_genassym.o
|
1996-03-02 15:00:35 -05:00
|
|
|
|
1999-12-23 14:59:47 -05:00
|
|
|
linux_assym.h: linux_genassym.o
|
2000-01-09 05:04:53 -05:00
|
|
|
genassym ${.ALLSRC} > ${.TARGET}
|
1996-03-02 15:00:35 -05:00
|
|
|
|
|
|
|
|
linux_locore.o: linux_locore.s linux_assym.h
|
2000-01-09 05:04:53 -05:00
|
|
|
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
|
1996-06-25 16:13:12 -04:00
|
|
|
${.IMPSRC} -o ${.TARGET}
|
1996-03-02 15:00:35 -05:00
|
|
|
|
1998-03-19 07:35:55 -05:00
|
|
|
linux_genassym.o: linux_genassym.c linux.h @ machine
|
2000-01-09 05:04:53 -05:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1996-03-02 15:00:35 -05:00
|
|
|
|
1997-12-16 13:45:50 -05:00
|
|
|
opt_compat.h:
|
|
|
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
|
|
1998-11-10 14:39:58 -05:00
|
|
|
afterinstall:
|
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1999-09-03 03:15:38 -04:00
|
|
|
${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
|
1995-06-25 13:32:43 -04:00
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|