1 # $FreeBSD: releng/5.4/sys/modules/linux/Makefile 122894 2003-11-19 05:08:27Z imp $
2
3 MAINTAINER= emulation@FreeBSD.org
4
5 .PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
6
7 KMOD= linux
8 SRCS= linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
9 linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
10 linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
11 linux_util.c opt_compat.h opt_inet6.h opt_mac.h \
12 opt_vmpage.h vnode_if.h
13 OBJS= linux_locore.o
14
15 .if ${MACHINE_ARCH} == "i386"
16 SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
17 .endif
18
19 EXPORT_SYMS=
20 EXPORT_SYMS+= linux_emul_path
21 EXPORT_SYMS+= linux_get_osname
22 EXPORT_SYMS+= linux_get_osrelease
23 EXPORT_SYMS+= linux_ifname
24 EXPORT_SYMS+= linux_ioctl_register_handler
25 EXPORT_SYMS+= linux_ioctl_unregister_handler
26
27 CLEANFILES= linux_assym.h linux_genassym.o
28
29 linux_assym.h: linux_genassym.o
30 .if exists(@)
31 linux_assym.h: @/kern/genassym.sh
32 .endif
33 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
34
35 linux_locore.o: linux_locore.s linux_assym.h
36 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
37 ${.IMPSRC} -o ${.TARGET}
38
39 linux_genassym.o: linux_genassym.c linux.h @ machine
40 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
41
42 opt_compat.h:
43 echo "#define COMPAT_43 1" > opt_compat.h
44
45 opt_inet6.h:
46 echo "#define INET6 1" > opt_inet6.h
47
48 .include <bsd.kmod.mk>
Cache object: 1f169d41f5e0a6d99462f58e608cc73e
|