Home | History | Annotate | Line # | Download | only in compat_netbsd32
      1  1.38  christos #	$NetBSD: Makefile,v 1.38 2023/08/30 12:18:59 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.33      maya #.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
      9  1.33      maya #NETBSD32_DRMKMS?=yes
     10  1.33      maya #.endif
     11  1.26  christos 
     12  1.18  pgoyette CPPFLAGS+=	-DCOMPAT_NETBSD32
     13  1.13      matt CPPFLAGS+=	-DEXEC_ELF32 -DEXEC_ELF64
     14  1.30  pgoyette CPPFLAGS+=	-DNTP -DVMSWAP
     15  1.32  pgoyette CPPFLAGS+=	-DKTRACE -DMODULAR
     16  1.21   mlelstv CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
     17   1.1        ad 
     18  1.26  christos .if ${NETBSD32_DRMKMS:Uno} == "yes"
     19  1.29  christos # disable for now
     20  1.29  christos #CPPFLAGS+=	-DNETBSD32_DRMKMS
     21  1.26  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/common/include
     22  1.26  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/drm2/include
     23  1.26  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist
     24  1.26  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist/include
     25  1.26  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist/uapi
     26  1.26  christos .endif
     27  1.26  christos 
     28   1.1        ad .PATH:	${S}/compat/netbsd32
     29  1.26  christos .if ${NETBSD32_DRMKMS:Uno} == "yes"
     30  1.26  christos SRCS+=	netbsd32_drm.c
     31  1.26  christos .endif
     32  1.36  pgoyette SRCS+=	netbsd32_acl.c		netbsd32_event.c
     33  1.38  christos SRCS+=	netbsd32_epoll.c
     34  1.22  pgoyette SRCS+=	netbsd32_exec_elf32.c	netbsd32_execve.c
     35  1.22  pgoyette SRCS+=	netbsd32_fd.c		netbsd32_fs.c
     36  1.34   thorpej SRCS+=	netbsd32_futex.c
     37  1.22  pgoyette SRCS+=	netbsd32_ioctl.c	netbsd32_kern_proc.c
     38  1.22  pgoyette SRCS+=	netbsd32_lwp.c		netbsd32_mod.c
     39  1.32  pgoyette SRCS+=	netbsd32_module.c	netbsd32_netbsd.c
     40  1.22  pgoyette SRCS+=	netbsd32_rlimit.c	netbsd32_select.c
     41  1.22  pgoyette SRCS+=	netbsd32_sem.c		netbsd32_signal.c
     42  1.22  pgoyette SRCS+=	netbsd32_socket.c	netbsd32_syscalls.c
     43  1.22  pgoyette SRCS+=	netbsd32_sysctl.c	netbsd32_sysent.c
     44  1.22  pgoyette SRCS+=	netbsd32_time.c		netbsd32_wait.c	
     45  1.22  pgoyette SRCS+=	netbsd32_vm.c
     46   1.1        ad 
     47  1.31  christos .if ${MACHINE_CPU} != "mips" && ${MACHINE_CPU} != "powerpc" && \
     48  1.31  christos     ${MACHINE_CPU} != "aarch64"
     49  1.13      matt CPPFLAGS+=	-DEXEC_AOUT -DCOMPAT_NOMID
     50  1.13      matt SRCS+=	netbsd32_exec_aout.c
     51  1.13      matt .endif
     52  1.13      matt 
     53   1.3       abs .if ${MACHINE_ARCH} == "x86_64"
     54   1.1        ad .PATH:	${S}/arch/amd64/amd64
     55  1.22  pgoyette CPPFLAGS+=	-DMTRR
     56  1.22  pgoyette SRCS+=	netbsd32_syscall.c
     57  1.22  pgoyette SRCS+=	netbsd32_machdep.c
     58   1.1        ad .endif
     59   1.1        ad 
     60   1.3       abs .if ${MACHINE_ARCH} == "sparc64"
     61   1.1        ad .PATH:	${S}/arch/sparc64/sparc64
     62  1.22  pgoyette SRCS+=	netbsd32_sigcode.S
     63  1.22  pgoyette SRCS+=	netbsd32_machdep.c
     64  1.22  pgoyette .endif
     65  1.22  pgoyette 
     66  1.37  christos .if !empty(MACHINE_ARCH:M*arm*)
     67  1.22  pgoyette .PATH:	${S}/arch/arm/arm32
     68  1.22  pgoyette SRCS+=	netbsd32_machdep.c
     69   1.1        ad .endif
     70   1.1        ad 
     71   1.1        ad .include <bsd.kmodule.mk>
     72