1 1.13 matt # $NetBSD: Makefile,v 1.13 2015/05/10 06:33:28 matt 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.10 christos CPPFLAGS+= -DCOMPAT_09 9 1.10 christos CPPFLAGS+= -DCOMPAT_10 10 1.10 christos CPPFLAGS+= -DCOMPAT_11 11 1.10 christos CPPFLAGS+= -DCOMPAT_12 12 1.10 christos CPPFLAGS+= -DCOMPAT_13 13 1.10 christos CPPFLAGS+= -DCOMPAT_14 14 1.10 christos CPPFLAGS+= -DCOMPAT_15 15 1.10 christos CPPFLAGS+= -DCOMPAT_16 16 1.10 christos 17 1.10 christos CPPFLAGS+= -DCOMPAT_20 18 1.10 christos CPPFLAGS+= -DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50 19 1.10 christos CPPFLAGS+= -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80 20 1.10 christos CPPFLAGS+= -DCOMPAT_43 21 1.2 njoly CPPFLAGS+= -DSYSVSHM -DSYSVSEM -DSYSVMSG -DCOMPAT_NETBSD32 22 1.13 matt CPPFLAGS+= -DEXEC_ELF32 -DEXEC_ELF64 23 1.10 christos CPPFLAGS+= -DCOREDUMP -DNTP 24 1.1 ad 25 1.1 ad .PATH: ${S}/compat/netbsd32 26 1.1 ad SRCS+= netbsd32_compat_09.c netbsd32_compat_10.c 27 1.1 ad SRCS+= netbsd32_compat_12.c netbsd32_compat_13.c 28 1.1 ad SRCS+= netbsd32_compat_14.c netbsd32_compat_20.c 29 1.1 ad SRCS+= netbsd32_compat_30.c netbsd32_compat_43.c 30 1.11 christos SRCS+= netbsd32_compat_50.c netbsd32_compat_60.c 31 1.1 ad SRCS+= netbsd32_core.c netbsd32_event.c 32 1.13 matt SRCS+= netbsd32_exec_elf32.c 33 1.1 ad SRCS+= netbsd32_execve.c netbsd32_fs.c 34 1.1 ad SRCS+= netbsd32_ioctl.c netbsd32_ipc.c 35 1.1 ad SRCS+= netbsd32_lwp.c netbsd32_netbsd.c 36 1.8 rmind SRCS+= netbsd32_select.c 37 1.1 ad SRCS+= netbsd32_sem.c netbsd32_signal.c 38 1.1 ad SRCS+= netbsd32_socket.c netbsd32_syscalls.c 39 1.1 ad SRCS+= netbsd32_sysctl.c netbsd32_sysent.c 40 1.1 ad SRCS+= netbsd32_time.c netbsd32_wait.c 41 1.1 ad SRCS+= netbsd32_mod.c 42 1.1 ad 43 1.13 matt .if ${MACHINE_CPU} != "mips" && ${MACHINE_CPU} != "powerpc" 44 1.13 matt CPPFLAGS+= -DEXEC_AOUT -DCOMPAT_NOMID 45 1.13 matt SRCS+= netbsd32_exec_aout.c 46 1.13 matt .endif 47 1.13 matt 48 1.3 abs .if ${MACHINE_ARCH} == "x86_64" 49 1.1 ad .PATH: ${S}/arch/amd64/amd64 50 1.1 ad SRCS+= netbsd32_machdep.c netbsd32_sigcode.S netbsd32_syscall.c 51 1.1 ad .endif 52 1.1 ad 53 1.3 abs .if ${MACHINE_ARCH} == "sparc64" 54 1.1 ad .PATH: ${S}/arch/sparc64/sparc64 55 1.1 ad SRCS+= netbsd32_machdep.c netbsd32_sigcode.S 56 1.1 ad .endif 57 1.1 ad 58 1.1 ad .include <bsd.kmodule.mk> 59