Home | History | Annotate | Line # | Download | only in compat_netbsd32
Makefile revision 1.23
      1 #	$NetBSD: Makefile,v 1.23 2019/02/17 04:05:45 rin Exp $
      2 
      3 .include "../Makefile.inc"
      4 .include "../Makefile.assym"
      5 
      6 KMOD=	compat_netbsd32
      7 
      8 CPPFLAGS+=	-DCOMPAT_09
      9 CPPFLAGS+=	-DCOMPAT_10
     10 CPPFLAGS+=	-DCOMPAT_11
     11 CPPFLAGS+=	-DCOMPAT_12
     12 CPPFLAGS+=	-DCOMPAT_13
     13 CPPFLAGS+=	-DCOMPAT_14
     14 CPPFLAGS+=	-DCOMPAT_15
     15 CPPFLAGS+=	-DCOMPAT_16
     16 
     17 CPPFLAGS+=	-DCOMPAT_20
     18 CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
     19 CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
     20 CPPFLAGS+=	-DCOMPAT_43
     21 CPPFLAGS+=	-DCOMPAT_NETBSD32
     22 CPPFLAGS+=	-DEXEC_ELF32 -DEXEC_ELF64
     23 CPPFLAGS+=	-DCOREDUMP -DNTP -DVMSWAP
     24 CPPFLAGS+=	-DKTRACE -DMODULAR
     25 CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
     26 
     27 .PATH:	${S}/compat/netbsd32
     28 SRCS+=	netbsd32_core.c		netbsd32_event.c
     29 SRCS+=	netbsd32_exec_elf32.c	netbsd32_execve.c
     30 SRCS+=	netbsd32_fd.c		netbsd32_fs.c
     31 SRCS+=	netbsd32_ioctl.c	netbsd32_kern_proc.c
     32 SRCS+=	netbsd32_lwp.c		netbsd32_mod.c
     33 SRCS+=	netbsd32_netbsd.c	netbsd32_quota.c
     34 SRCS+=	netbsd32_rlimit.c	netbsd32_select.c
     35 SRCS+=	netbsd32_sem.c		netbsd32_signal.c
     36 SRCS+=	netbsd32_socket.c	netbsd32_syscalls.c
     37 SRCS+=	netbsd32_sysctl.c	netbsd32_sysent.c
     38 SRCS+=	netbsd32_time.c		netbsd32_wait.c	
     39 SRCS+=	netbsd32_vm.c
     40 SRCS+=	netbsd32_module.c
     41 
     42 .if ${MACHINE_CPU} != "mips" && ${MACHINE_CPU} != "powerpc"
     43 CPPFLAGS+=	-DEXEC_AOUT -DCOMPAT_NOMID
     44 SRCS+=	netbsd32_exec_aout.c
     45 .endif
     46 
     47 .if ${MACHINE_ARCH} == "x86_64"
     48 .PATH:	${S}/arch/amd64/amd64
     49 CPPFLAGS+=	-DMTRR
     50 SRCS+=	netbsd32_syscall.c
     51 SRCS+=	netbsd32_machdep.c
     52 .endif
     53 
     54 .if ${MACHINE_ARCH} == "sparc64"
     55 .PATH:	${S}/arch/sparc64/sparc64
     56 SRCS+=	netbsd32_sigcode.S
     57 SRCS+=	netbsd32_machdep.c
     58 .endif
     59 
     60 .if ${MACHINE_ARCH} == "arm"
     61 .PATH:	${S}/arch/arm/arm32
     62 SRCS+=	netbsd32_machdep.c
     63 .endif
     64 
     65 WARNS=	3
     66 
     67 .include <bsd.kmodule.mk>
     68