1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1995-06-25 17:32:43 +00:00
|
|
|
|
2001-01-06 14:00:42 +00:00
|
|
|
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
|
|
|
|
|
1998-10-16 04:30:52 +00:00
|
|
|
KMOD= linux
|
2001-09-08 19:07:04 +00:00
|
|
|
SRCS= linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
|
|
|
|
linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
|
|
|
|
linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
|
2003-11-19 05:08:27 +00:00
|
|
|
linux_util.c opt_compat.h opt_inet6.h opt_mac.h \
|
2003-02-03 17:43:20 +00:00
|
|
|
opt_vmpage.h vnode_if.h
|
1996-03-02 20:00:35 +00:00
|
|
|
OBJS= linux_locore.o
|
|
|
|
|
2001-01-07 03:10:15 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2002-09-08 02:59:38 +00:00
|
|
|
SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
|
2000-09-06 20:21:15 +00:00
|
|
|
.endif
|
|
|
|
|
2002-02-22 18:21:20 +00:00
|
|
|
EXPORT_SYMS=
|
|
|
|
EXPORT_SYMS+= linux_emul_path
|
|
|
|
EXPORT_SYMS+= linux_get_osname
|
|
|
|
EXPORT_SYMS+= linux_get_osrelease
|
|
|
|
EXPORT_SYMS+= linux_ifname
|
|
|
|
EXPORT_SYMS+= linux_ioctl_register_handler
|
|
|
|
EXPORT_SYMS+= linux_ioctl_unregister_handler
|
|
|
|
|
2001-01-06 14:00:42 +00:00
|
|
|
CLEANFILES= linux_assym.h linux_genassym.o
|
1996-03-02 20:00:35 +00:00
|
|
|
|
2001-01-06 14:00:42 +00:00
|
|
|
linux_assym.h: linux_genassym.o
|
2000-06-03 07:40:19 +00:00
|
|
|
.if exists(@)
|
2001-01-06 14:00:42 +00:00
|
|
|
linux_assym.h: @/kern/genassym.sh
|
2000-06-03 07:40:19 +00:00
|
|
|
.endif
|
|
|
|
sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
|
1996-03-02 20:00:35 +00:00
|
|
|
|
2001-01-06 14:00:42 +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} \
|
2001-01-06 14:00:42 +00:00
|
|
|
${.IMPSRC} -o ${.TARGET}
|
1996-03-02 20:00:35 +00:00
|
|
|
|
2001-01-06 14:00:42 +00:00
|
|
|
linux_genassym.o: linux_genassym.c linux.h @ machine
|
2002-01-10 03:52:54 +00:00
|
|
|
${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
|
1996-03-02 20:00:35 +00:00
|
|
|
|
2005-10-14 23:30:17 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
1997-12-16 18:45:50 +00:00
|
|
|
opt_compat.h:
|
|
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
|
2003-02-03 17:43:20 +00:00
|
|
|
opt_inet6.h:
|
|
|
|
echo "#define INET6 1" > opt_inet6.h
|
2005-10-14 23:30:17 +00:00
|
|
|
.endif
|
2003-02-03 17:43:20 +00:00
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|