1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1995-06-25 13:32:43 -04:00
|
|
|
|
2001-11-18 00:45:27 -05:00
|
|
|
MAINTAINER= emulation@FreeBSD.org
|
1999-08-28 05:04:21 -04:00
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
|
|
|
|
|
|
1998-10-16 00:30:52 -04:00
|
|
|
KMOD= linux
|
2001-09-08 15:07:04 -04: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-02-03 12:43:20 -05:00
|
|
|
linux_util.c opt_compat.h opt_inet6.h opt_linux.h opt_mac.h \
|
|
|
|
|
opt_vmpage.h vnode_if.h
|
1996-03-02 15:00:35 -05:00
|
|
|
OBJS= linux_locore.o
|
|
|
|
|
|
2001-01-06 22:10:15 -05:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2002-09-07 22:59:38 -04:00
|
|
|
SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
|
2000-09-06 16:21:15 -04:00
|
|
|
.endif
|
|
|
|
|
|
2002-02-22 13:21:20 -05: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 09:00:42 -05:00
|
|
|
CLEANFILES= linux_assym.h linux_genassym.o
|
1996-03-02 15:00:35 -05:00
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
linux_assym.h: linux_genassym.o
|
2000-06-03 03:40:19 -04:00
|
|
|
.if exists(@)
|
2001-01-06 09:00:42 -05:00
|
|
|
linux_assym.h: @/kern/genassym.sh
|
2000-06-03 03:40:19 -04:00
|
|
|
.endif
|
|
|
|
|
sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
|
1996-03-02 15:00:35 -05:00
|
|
|
|
2001-01-06 09:00:42 -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} \
|
2001-01-06 09:00:42 -05:00
|
|
|
${.IMPSRC} -o ${.TARGET}
|
1996-03-02 15:00:35 -05:00
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
linux_genassym.o: linux_genassym.c linux.h @ machine
|
2002-01-09 22:52:54 -05:00
|
|
|
${CC} -c ${CFLAGS:N-fno-common} ${.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
|
|
|
|
|
|
2003-02-03 12:43:20 -05:00
|
|
|
opt_inet6.h:
|
|
|
|
|
echo "#define INET6 1" > opt_inet6.h
|
|
|
|
|
|
2000-05-26 21:14:33 -04:00
|
|
|
.include <bsd.kmod.mk>
|