1# $FreeBSD: head/sys/modules/linux/Makefile 53846 1999-11-28 18:53:47Z bde $
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
18
19build-tools: linux_genassym
20
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
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>
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
18
19build-tools: linux_genassym
20
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
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>