Makefile (8e734a64e34eadfb17901fd3705dd214bfb4c8af) Makefile (ccf5ba748382e2c5f3f749444e8f727bf937a210)
1# $Id: Makefile,v 1.13 1998/02/01 17:53:55 bde Exp $
1# $Id: Makefile,v 1.14 1998/02/04 21:56:36 eivind 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 \
6 linux_ipc.c linux_socket.c linux_stats.c \
7 linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
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 \
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_diagnostic.h vnode_if.h
8 imgact_linux.c opt_compat.h vnode_if.h
9OBJS= linux_locore.o
10MAN8= linux.8
11
12CFLAGS+= -DLKM -DCOMPAT_LINUX #-DDEBUG
13EXPORT_SYMS=_linux_mod
14CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \
9OBJS= linux_locore.o
10MAN8= linux.8
11
12CFLAGS+= -DLKM -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_diagnostic.h
15 linux_assym.h opt_compat.h
16
17linux_assym.h: linux_genassym
18 ./linux_genassym > linux_assym.h
19
20linux_locore.o: linux_locore.s linux_assym.h
21 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
22 ${.IMPSRC} -o ${.TARGET}
23
24linux_genassym.o: linux_genassym.c linux.h
25 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
26
27linux_genassym: linux_genassym.o
28 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
29
16
17linux_assym.h: linux_genassym
18 ./linux_genassym > linux_assym.h
19
20linux_locore.o: linux_locore.s linux_assym.h
21 ${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
22 ${.IMPSRC} -o ${.TARGET}
23
24linux_genassym.o: linux_genassym.c linux.h
25 ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
26
27linux_genassym: linux_genassym.o
28 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
29
30opt_diagnostic.h:
31 touch opt_diagnostic.h
32
33opt_compat.h:
34 echo "#define COMPAT_43 1" > opt_compat.h
35
36afterinstall:
37 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
38 ${.CURDIR}/linux ${DESTDIR}/usr/bin
39
40.include <bsd.kmod.mk>
30opt_compat.h:
31 echo "#define COMPAT_43 1" > opt_compat.h
32
33afterinstall:
34 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
35 ${.CURDIR}/linux ${DESTDIR}/usr/bin
36
37.include <bsd.kmod.mk>