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