1# $Id: Makefile,v 1.17 1998/07/01 17:10:00 bde Exp $
|
1# $Id: Makefile,v 1.18 1998/07/07 02:04:20 bde Exp $ |
2
|
3.PATH: ${.CURDIR}/../../sys/i386/linux
4KMOD= linux_mod
5SRCS= linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
|
3.PATH: ${.CURDIR}/../../i386/linux 4KMOD= linux 5SRCS= linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \ |
6 linux_ipc.c linux_socket.c linux_stats.c \ 7 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \ 8 imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h 9OBJS= linux_locore.o 10MAN8= linux.8 11
|
12CFLAGS+= -DLKM -DCOMPAT_LINUX #-DDEBUG
|
12CFLAGS+= -DCOMPAT_LINUX #-DDEBUG |
13EXPORT_SYMS=_linux_mod 14CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \ 15 linux_assym.h opt_compat.h opt_linux.h opt_vmpage.h 16 17build-tools: linux_genassym 18 19linux_assym.h: linux_genassym 20 ./linux_genassym > linux_assym.h 21 22linux_locore.o: linux_locore.s linux_assym.h 23 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \ 24 ${.IMPSRC} -o ${.TARGET} 25 26linux_genassym.o: linux_genassym.c linux.h @ machine 27 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC} 28 29linux_genassym: linux_genassym.o 30 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} 31 32opt_compat.h: 33 echo "#define COMPAT_43 1" > opt_compat.h 34 35opt_linux.h opt_vmpage.h: 36 touch ${.TARGET} 37 38afterinstall: 39 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 40 ${.CURDIR}/linux ${DESTDIR}/usr/bin 41 42.include <bsd.kmod.mk>
|