freebsd-dev/sys/modules/linux/Makefile

38 lines
1.0 KiB
Makefile
Raw Normal View History

1998-02-06 23:54:27 +00:00
# $Id: Makefile,v 1.14 1998/02/04 21:56:36 eivind 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_ipc.c linux_socket.c linux_stats.c \
linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
1998-02-06 23:54:27 +00:00
imgact_linux.c opt_compat.h vnode_if.h
OBJS= linux_locore.o
MAN8= linux.8
CFLAGS+= -DLKM -DCOMPAT_LINUX #-DDEBUG
EXPORT_SYMS=_linux_mod
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \
1998-02-06 23:54:27 +00:00
linux_assym.h opt_compat.h
linux_assym.h: linux_genassym
./linux_genassym > linux_assym.h
linux_locore.o: linux_locore.s linux_assym.h
${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
${.IMPSRC} -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}
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/linux ${DESTDIR}/usr/bin
.include <bsd.kmod.mk>