1 # $FreeBSD: src/sys/modules/linux/Makefile,v 1.34.2.12 2003/01/02 20:41:34 kan Exp $
2 # $DragonFly: src/sys/emulation/linux/Makefile,v 1.10 2006/11/07 06:43:24 dillon Exp $
4 .PATH: ${.CURDIR}/../../emulation/linux ${.CURDIR}/../../emulation/linux/${MACHINE_ARCH}
8 SRCS= linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
9 linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
10 linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
11 linux_util.c opt_compat.h opt_global.h opt_vmpage.h
14 SUBDIR= i386/linprocfs
15 .if ${MACHINE_ARCH} == "i386"
16 SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
19 CLEANFILES= linux_assym.h linux_genassym.o
21 linux_assym.h: linux_genassym.o
23 linux_assym.h: @/kern/genassym.sh
25 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
27 linux_locore.o: linux_locore.s linux_assym.h
28 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
29 ${.IMPSRC} -o ${.TARGET}
31 linux_genassym.o: linux_genassym.c linux.h @
32 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
35 echo "#define COMPAT_43 1" > opt_compat.h
37 .include <bsd.kmod.mk>