1 1.11 ryo # $NetBSD: Makefile,v 1.11 2021/11/27 05:36:39 ryo Exp $ 2 1.1 ad 3 1.1 ad .include "../Makefile.inc" 4 1.1 ad .include "../Makefile.assym" 5 1.1 ad 6 1.1 ad KMOD= compat_linux32 7 1.1 ad 8 1.4 njoly CPPFLAGS+= -DSYSVSHM -DSYSVSEM -DSYSVMSG -DCOMPAT_LINUX 9 1.1 ad CPPFLAGS+= -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 10 1.8 mlelstv CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist 11 1.1 ad 12 1.1 ad .PATH: ${S}/compat/linux32/common 13 1.1 ad SRCS+= linux32_dirent.c linux32_exec.c linux32_exec_elf32.c linux32_fcntl.c 14 1.3 ad SRCS+= linux32_ioctl.c linux32_misc.c linux32_mman.c 15 1.1 ad SRCS+= linux32_mod.c linux32_resource.c linux32_sched.c linux32_signal.c 16 1.1 ad SRCS+= linux32_socket.c linux32_socketcall.c linux32_stat.c linux32_sysctl.c 17 1.3 ad SRCS+= linux32_sysinfo.c linux32_termios.c linux32_time.c 18 1.2 ad SRCS+= linux32_unistd.c linux32_utsname.c linux32_wait.c 19 1.1 ad 20 1.11 ryo .if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb" 21 1.10 ryo CPPFLAGS+= -DEXEC_ELF32 22 1.10 ryo .PATH: ${S}/compat/linux32/arch/aarch64 23 1.10 ryo SRCS+= linux32_exec_machdep.c linux32_ipccall.c linux32_machdep.c 24 1.10 ryo SRCS+= linux32_missing.c linux32_sigcode.S linux32_syscalls.c linux32_sysent.c 25 1.10 ryo SRCS+= linux32_uid16.c 26 1.10 ryo .PATH: ${S}/arch/aarch64/aarch64 27 1.10 ryo SRCS+= linux32_syscall.c 28 1.10 ryo .PATH: ${S}/compat/linux/common 29 1.10 ryo SRCS+= linux_exec_elf32.c 30 1.10 ryo .endif 31 1.10 ryo 32 1.5 abs .if ${MACHINE_ARCH} == "x86_64" 33 1.3 ad CPPFLAGS+= -DEXEC_ELF32 -DLINUX32_DEBUGLINK_SIGNATURE 34 1.1 ad .PATH: ${S}/compat/linux32/arch/amd64 35 1.1 ad .PATH: ${S}/arch/amd64/amd64 36 1.1 ad .PATH: ${S}/arch/x86/x86 37 1.3 ad SRCS+= linux32_ipccall.c linux32_machdep.c linux32_missing.c 38 1.3 ad SRCS+= linux32_syscalls.c linux32_sysent.c linux32_sigcode.S 39 1.3 ad SRCS+= linux32_syscall.c linux32_uid16.c 40 1.3 ad .PATH: ${S}/compat/linux/common 41 1.3 ad SRCS+= linux_oldmmap.c linux_exec_elf32.c 42 1.1 ad .endif 43 1.1 ad 44 1.9 rin WARNS= 3 45 1.9 rin 46 1.1 ad .include <bsd.kmodule.mk> 47