]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/linux/Makefile
genassym depends on the presence of common variables, disable the use
[FreeBSD/FreeBSD.git] / sys / modules / linux / Makefile
1 # $FreeBSD$
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_linux.h opt_vmpage.h vnode_if.h
12 OBJS=   linux_locore.o
13
14 .if ${MACHINE_ARCH} == "i386"
15 SRCS+=  linux_uid16.c imgact_linux.c
16 .endif
17
18 CLEANFILES=     linux_assym.h linux_genassym.o
19
20 linux_assym.h: linux_genassym.o
21 .if exists(@)
22 linux_assym.h: @/kern/genassym.sh
23 .endif
24         sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
25
26 linux_locore.o: linux_locore.s linux_assym.h
27         ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
28             ${.IMPSRC} -o ${.TARGET}
29
30 linux_genassym.o: linux_genassym.c linux.h @ machine
31         ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
32
33 opt_compat.h:
34         echo "#define COMPAT_43 1" > opt_compat.h
35
36 .include <bsd.kmod.mk>