Deleted Added
full compact
Makefile (53846) Makefile (55062)
1# $FreeBSD: head/sys/modules/linux/Makefile 53846 1999-11-28 18:53:47Z bde $
1# $FreeBSD: head/sys/modules/linux/Makefile 55062 1999-12-23 19:59:47Z marcel $
2
3.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/linux
4
5MAINTAINER= marcel@FreeBSD.org
6
7KMOD= linux
8SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
9 linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \
10 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
11 imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
12OBJS= linux_locore.o
13MAN8= linux.8
14
15# CFLAGS+= -DDEBUG
16EXPORT_SYMS=_linux_mod
2
3.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/linux
4
5MAINTAINER= marcel@FreeBSD.org
6
7KMOD= linux
8SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
9 linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \
10 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
11 imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
12OBJS= linux_locore.o
13MAN8= linux.8
14
15# CFLAGS+= -DDEBUG
16EXPORT_SYMS=_linux_mod
17CLEANFILES= linux_assym.h linux_genassym linux_genassym.o
17CLEANFILES= linux_assym.h linux_genassym.o
18
18
19build-tools: linux_genassym
19linux_assym.h: linux_genassym.o
20 genassym -o ${.TARGET} ${.ALLSRC}
20
21
21linux_assym.h: linux_genassym
22 ./linux_genassym > linux_assym.h
23
24linux_locore.o: linux_locore.s linux_assym.h
25 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
26 ${.IMPSRC} -o ${.TARGET}
27
28linux_genassym.o: linux_genassym.c linux.h @ machine
29 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
30
22linux_locore.o: linux_locore.s linux_assym.h
23 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
24 ${.IMPSRC} -o ${.TARGET}
25
26linux_genassym.o: linux_genassym.c linux.h @ machine
27 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
28
31linux_genassym: linux_genassym.o
32 ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
33
34opt_compat.h:
35 echo "#define COMPAT_43 1" > opt_compat.h
36
37afterinstall:
38 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
39 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
40
41.include <bsd.kmod.mk>
29opt_compat.h:
30 echo "#define COMPAT_43 1" > opt_compat.h
31
32afterinstall:
33 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
34 ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
35
36.include <bsd.kmod.mk>