3 MAINTAINER= emulation@FreeBSD.org
5 .PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
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_linux.h opt_vmpage.h vnode_if.h
14 .if ${MACHINE_ARCH} == "i386"
15 SRCS+= linux_uid16.c imgact_linux.c
18 CLEANFILES= linux_assym.h linux_genassym.o
20 linux_assym.h: linux_genassym.o
22 linux_assym.h: @/kern/genassym.sh
24 sh @/kern/genassym.sh linux_genassym.o > ${.TARGET}
26 linux_locore.o: linux_locore.s linux_assym.h
27 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
28 ${.IMPSRC} -o ${.TARGET}
30 linux_genassym.o: linux_genassym.c linux.h @ machine
31 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
34 echo "#define COMPAT_43 1" > opt_compat.h
36 .include <bsd.kmod.mk>