summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lkm/linux/Makefile30
-rw-r--r--sys/modules/linux/Makefile30
2 files changed, 50 insertions, 10 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} \
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 1188ae0..7c7074c 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/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} \
OpenPOWER on IntegriCloud