1999-01-26 21:29:01 +00:00
|
|
|
# $Id: Makefile,v 1.24 1998/11/12 00:37:39 jkh Exp $
|
1995-06-25 17:32:43 +00:00
|
|
|
|
1998-10-16 04:30:52 +00:00
|
|
|
.PATH: ${.CURDIR}/../../i386/linux
|
|
|
|
KMOD= linux
|
|
|
|
SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
|
1996-03-02 20:00:35 +00:00
|
|
|
linux_ipc.c linux_socket.c linux_stats.c \
|
|
|
|
linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
|
1998-07-01 17:10:00 +00:00
|
|
|
imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
|
1996-03-02 20:00:35 +00:00
|
|
|
OBJS= linux_locore.o
|
1997-01-10 05:48:50 +00:00
|
|
|
MAN8= linux.8
|
1996-03-02 20:00:35 +00:00
|
|
|
|
1999-01-26 21:29:01 +00:00
|
|
|
CFLAGS+= -DCOMPAT_LINUX -DVM_STACK #-DDEBUG
|
1996-03-10 08:42:54 +00:00
|
|
|
EXPORT_SYMS=_linux_mod
|
1998-02-01 17:53:56 +00:00
|
|
|
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \
|
1998-07-01 17:10:00 +00:00
|
|
|
linux_assym.h opt_compat.h opt_linux.h opt_vmpage.h
|
1996-03-02 20:00:35 +00:00
|
|
|
|
1998-07-07 02:04:20 +00:00
|
|
|
build-tools: linux_genassym
|
|
|
|
|
1996-03-02 20:00:35 +00:00
|
|
|
linux_assym.h: linux_genassym
|
|
|
|
./linux_genassym > linux_assym.h
|
|
|
|
|
|
|
|
linux_locore.o: linux_locore.s linux_assym.h
|
1996-06-25 20:13:12 +00:00
|
|
|
${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
|
|
|
|
${.IMPSRC} -o ${.TARGET}
|
1996-03-02 20:00:35 +00:00
|
|
|
|
1998-03-19 12:35:55 +00:00
|
|
|
linux_genassym.o: linux_genassym.c linux.h @ machine
|
1996-03-02 20:00:35 +00:00
|
|
|
${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
|
|
|
|
|
|
|
|
linux_genassym: linux_genassym.o
|
1998-11-05 04:39:26 +00:00
|
|
|
${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
|
1995-06-25 17:32:43 +00:00
|
|
|
|
1997-12-16 18:45:50 +00:00
|
|
|
opt_compat.h:
|
|
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
|
1998-07-01 17:10:00 +00:00
|
|
|
opt_linux.h opt_vmpage.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
|
1998-11-10 19:39:58 +00:00
|
|
|
afterinstall:
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1998-11-12 00:37:39 +00:00
|
|
|
${.CURDIR}/linux.sh ${DESTDIR}/usr/bin/linux
|
1995-06-25 17:32:43 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|