Deleted Added
full compact
Makefile (86538) Makefile (89181)
1# $FreeBSD: head/sys/modules/linux/Makefile 86538 2001-11-18 05:45:27Z marcel $
1# $FreeBSD: head/sys/modules/linux/Makefile 89181 2002-01-10 03:52:54Z msmith $
2
3MAINTAINER= emulation@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
2
3MAINTAINER= emulation@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}
31 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
32
33opt_compat.h:
34 echo "#define COMPAT_43 1" > opt_compat.h
35
36.include <bsd.kmod.mk>
32
33opt_compat.h:
34 echo "#define COMPAT_43 1" > opt_compat.h
35
36.include <bsd.kmod.mk>