diff options
author | peter <peter@FreeBSD.org> | 1996-03-02 20:00:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-03-02 20:00:35 +0000 |
commit | 744710a9af5aa37c11921e76981b7d8ea60aa509 (patch) | |
tree | 0364f24a1361ef7d0941fc6c80ec6ebb8e4d04e2 /lkm/linux | |
parent | d7f117dcfc9f17a4334a001b202d5c8488a15b48 (diff) | |
download | FreeBSD-src-744710a9af5aa37c11921e76981b7d8ea60aa509.zip FreeBSD-src-744710a9af5aa37c11921e76981b7d8ea60aa509.tar.gz |
Update the linux lkm to use the new file list and build routine.
This is a bit of a kludge and needs more work.
Diffstat (limited to 'lkm/linux')
-rw-r--r-- | lkm/linux/Makefile | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/lkm/linux/Makefile b/lkm/linux/Makefile index 1188ae0..7c7074c 100644 --- a/lkm/linux/Makefile +++ b/lkm/linux/Makefile @@ -1,13 +1,33 @@ -# $Id: Makefile,v 1.4 1996/01/08 05:36:17 peter Exp $ +# $Id: Makefile,v 1.5 1996/01/27 23:57:06 rgrimes Exp $ .PATH: ${.CURDIR}/../../sys/i386/linux KMOD= linux_mod SRCS= linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \ - linux_generic.c linux_ipc.c linux_socket.c linux_stats.c \ - linux_dummy.c linux_sysent.c imgact_linux.c vnode_if.h + linux_ipc.c linux_socket.c linux_stats.c \ + linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ + imgact_linux.c vnode_if.h +OBJS= linux_locore.o NOMAN= -CFLAGS+= -DLKM -I. -DCOMPAT_LINUX # -DDEBUG -CLEANFILES+= vnode_if.h vnode_if.c + +CFLAGS+= -DLKM -I. -DCOMPAT_43 -DCOMPAT_LINUX #-DDEBUG +CPPFLAGS= -I. -I${.CURDIR}/../../sys + +CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym machine \ + linux_assym.h + +linux_assym.h: linux_genassym + ./linux_genassym > linux_assym.h + +linux_locore.o: linux_locore.s linux_assym.h + @if [ ! -h machine ]; then ln -s ${.CURDIR}/../../i386/include machine \ + ; fi + ${CPP} -DLOCORE -DKERNEL ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} + +linux_genassym.o: linux_genassym.c linux.h + ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC} + +linux_genassym: linux_genassym.o + ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} afterinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |