1# $FreeBSD: head/sys/modules/linux/Makefile 83221 2001-09-08 19:07:04Z marcel $
2
3MAINTAINER= marcel@FreeBSD.org
4
5.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
6
7KMOD= linux
8SRCS= 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
12OBJS= linux_locore.o
13
14.if ${MACHINE_ARCH} == "i386"
15SRCS+= linux_uid16.c imgact_linux.c
16.endif
17
18CLEANFILES= linux_assym.h linux_genassym.o
19
20linux_assym.h: linux_genassym.o
21.if exists(@)
22linux_assym.h: @/kern/genassym.sh
23.endif
24 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
25
26linux_locore.o: linux_locore.s linux_assym.h
27 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
28 ${.IMPSRC} -o ${.TARGET}
29
30linux_genassym.o: linux_genassym.c linux.h @ machine
31 ${CC} -c ${CFLAGS} ${.IMPSRC}
32
33opt_compat.h:
34 echo "#define COMPAT_43 1" > opt_compat.h
35
36.include <bsd.kmod.mk>
2
3MAINTAINER= marcel@FreeBSD.org
4
5.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
6
7KMOD= linux
8SRCS= 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
12OBJS= linux_locore.o
13
14.if ${MACHINE_ARCH} == "i386"
15SRCS+= linux_uid16.c imgact_linux.c
16.endif
17
18CLEANFILES= linux_assym.h linux_genassym.o
19
20linux_assym.h: linux_genassym.o
21.if exists(@)
22linux_assym.h: @/kern/genassym.sh
23.endif
24 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
25
26linux_locore.o: linux_locore.s linux_assym.h
27 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
28 ${.IMPSRC} -o ${.TARGET}
29
30linux_genassym.o: linux_genassym.c linux.h @ machine
31 ${CC} -c ${CFLAGS} ${.IMPSRC}
32
33opt_compat.h:
34 echo "#define COMPAT_43 1" > opt_compat.h
35
36.include <bsd.kmod.mk>