1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1995-06-25 13:32:43 -04:00
|
|
|
|
2000-08-22 02:02:01 -04:00
|
|
|
.PATH: ${.CURDIR}/../../compat/linux ${.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
|
2000-11-01 18:17:31 -05:00
|
|
|
SRCS= linux_file.c linux_ioctl.c linux_ipc.c linux_machdep.c linux_misc.c \
|
2000-09-06 16:21:15 -04:00
|
|
|
linux_signal.c linux_socket.c linux_stats.c linux_mib.c \
|
2000-11-01 04:23:12 -05:00
|
|
|
linux_dummy.c linux_sysvec.c linux_util.c \
|
2000-09-06 16:21:15 -04:00
|
|
|
opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
|
1996-03-02 15:00:35 -05:00
|
|
|
OBJS= linux_locore.o
|
|
|
|
|
|
2000-09-06 16:21:55 -04:00
|
|
|
.if ${MACHINE_ARCH} != "alpha"
|
2000-11-01 18:17:31 -05:00
|
|
|
SRCS+= imgact_linux.c
|
2000-09-06 16:21:15 -04:00
|
|
|
.endif
|
|
|
|
|
|
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-06-03 03:40:19 -04:00
|
|
|
.if exists(@)
|
|
|
|
|
linux_assym.h: @/kern/genassym.sh
|
|
|
|
|
.endif
|
|
|
|
|
sh @/kern/genassym.sh linux_genassym.o > ${.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
|
|
|
|
|
|
2000-11-01 04:23:12 -05:00
|
|
|
GENSYSCALL= linux_sysent.c linux_syscall.h linux_proto.h
|
|
|
|
|
SRCS+= ${GENSYSCALL}
|
|
|
|
|
CLEANFILES+= ${GENSYSCALL}
|
|
|
|
|
|
2000-11-04 22:10:45 -05:00
|
|
|
.ORDER: ${GENSYSCALL}
|
2000-11-01 04:23:12 -05:00
|
|
|
${GENSYSCALL}: @/kern/makesyscalls.sh \
|
|
|
|
|
@/${MACHINE_ARCH}/linux/syscalls.master \
|
|
|
|
|
@/${MACHINE_ARCH}/linux/syscalls.conf
|
|
|
|
|
sh @/kern/makesyscalls.sh @/${MACHINE_ARCH}/linux/syscalls.master \
|
|
|
|
|
@/${MACHINE_ARCH}/linux/syscalls.conf
|
|
|
|
|
sed -e 's|${MACHINE_ARCH}/linux/linux_proto\.h|linux_proto.h|g' \
|
|
|
|
|
linux_sysent.c > linux_sysent.c.fixup
|
|
|
|
|
mv -f linux_sysent.c.fixup linux_sysent.c
|
|
|
|
|
|
2000-05-26 21:14:33 -04:00
|
|
|
.include <bsd.kmod.mk>
|