1 1.25 christos # $NetBSD: Makefile,v 1.25 2019/06/18 01:40:29 christos 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_netbsd32 7 1.1 ad 8 1.18 pgoyette CPPFLAGS+= -DCOMPAT_NETBSD32 9 1.13 matt CPPFLAGS+= -DEXEC_ELF32 -DEXEC_ELF64 10 1.14 christos CPPFLAGS+= -DCOREDUMP -DNTP -DVMSWAP 11 1.25 christos CPPFLAGS+= -DKTRACE -DMODULAR -DQUOTA 12 1.21 mlelstv CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist 13 1.1 ad 14 1.1 ad .PATH: ${S}/compat/netbsd32 15 1.22 pgoyette SRCS+= netbsd32_core.c netbsd32_event.c 16 1.22 pgoyette SRCS+= netbsd32_exec_elf32.c netbsd32_execve.c 17 1.22 pgoyette SRCS+= netbsd32_fd.c netbsd32_fs.c 18 1.22 pgoyette SRCS+= netbsd32_ioctl.c netbsd32_kern_proc.c 19 1.22 pgoyette SRCS+= netbsd32_lwp.c netbsd32_mod.c 20 1.22 pgoyette SRCS+= netbsd32_netbsd.c netbsd32_quota.c 21 1.22 pgoyette SRCS+= netbsd32_rlimit.c netbsd32_select.c 22 1.22 pgoyette SRCS+= netbsd32_sem.c netbsd32_signal.c 23 1.22 pgoyette SRCS+= netbsd32_socket.c netbsd32_syscalls.c 24 1.22 pgoyette SRCS+= netbsd32_sysctl.c netbsd32_sysent.c 25 1.22 pgoyette SRCS+= netbsd32_time.c netbsd32_wait.c 26 1.22 pgoyette SRCS+= netbsd32_vm.c 27 1.22 pgoyette SRCS+= netbsd32_module.c 28 1.1 ad 29 1.13 matt .if ${MACHINE_CPU} != "mips" && ${MACHINE_CPU} != "powerpc" 30 1.13 matt CPPFLAGS+= -DEXEC_AOUT -DCOMPAT_NOMID 31 1.13 matt SRCS+= netbsd32_exec_aout.c 32 1.13 matt .endif 33 1.13 matt 34 1.3 abs .if ${MACHINE_ARCH} == "x86_64" 35 1.1 ad .PATH: ${S}/arch/amd64/amd64 36 1.22 pgoyette CPPFLAGS+= -DMTRR 37 1.22 pgoyette SRCS+= netbsd32_syscall.c 38 1.22 pgoyette SRCS+= netbsd32_machdep.c 39 1.1 ad .endif 40 1.1 ad 41 1.3 abs .if ${MACHINE_ARCH} == "sparc64" 42 1.1 ad .PATH: ${S}/arch/sparc64/sparc64 43 1.22 pgoyette SRCS+= netbsd32_sigcode.S 44 1.22 pgoyette SRCS+= netbsd32_machdep.c 45 1.22 pgoyette .endif 46 1.22 pgoyette 47 1.22 pgoyette .if ${MACHINE_ARCH} == "arm" 48 1.22 pgoyette .PATH: ${S}/arch/arm/arm32 49 1.22 pgoyette SRCS+= netbsd32_machdep.c 50 1.1 ad .endif 51 1.1 ad 52 1.23 rin WARNS= 3 53 1.23 rin 54 1.1 ad .include <bsd.kmodule.mk> 55