]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/linux/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / sys / modules / linux / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
4
5 KMOD=   linux
6 SRCS=   linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
7         linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
8         linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
9         linux_time.c linux_util.c opt_compat.h opt_inet6.h opt_mac.h \
10         opt_vmpage.h vnode_if.h device_if.h bus_if.h
11 OBJS=   linux_locore.o
12
13 .if ${MACHINE_ARCH} == "i386"
14 SRCS+=  linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
15 .endif
16
17 EXPORT_SYMS=
18 EXPORT_SYMS+=   linux_emul_path
19 EXPORT_SYMS+=   linux_get_osname
20 EXPORT_SYMS+=   linux_get_osrelease
21 EXPORT_SYMS+=   linux_ifname
22 EXPORT_SYMS+=   linux_ioctl_register_handler
23 EXPORT_SYMS+=   linux_ioctl_unregister_handler
24
25 CLEANFILES=     linux_assym.h linux_genassym.o
26
27 linux_assym.h: linux_genassym.o
28 .if exists(@)
29 linux_assym.h: @/kern/genassym.sh
30 .endif
31         sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
32
33 linux_locore.o: linux_locore.s linux_assym.h
34         ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
35             ${.IMPSRC} -o ${.TARGET}
36
37 linux_genassym.o: linux_genassym.c linux.h @ machine
38         ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
39
40 .if !defined(KERNBUILDDIR)
41 opt_compat.h:
42         echo "#define COMPAT_43 1" > opt_compat.h
43
44 opt_inet6.h:
45         echo "#define INET6 1" > opt_inet6.h
46 .endif
47
48 .include <bsd.kmod.mk>