Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / compat12 / emulator.mk
blobbbdc1caf014ed4e3a20807c187421d102ae6d142
1 # $NetBSD$
3 # This file is included by netbsd-compat.mk in the emulator framework.
5 # Variables set by this file:
7 # EMUL_DISTRO
8 # The NetBSD distribution used to provide the files.
10 # EMUL_EXEC_FMT
11 # The executable format of the emulated operating system.
13 # EMULSUBDIR
14 # Path relative to ${PREFIX} where the files and directories are
15 # located, e.g. emul/aout.
17 # OPSYS_EMULDIR
18 # Path through which the platform expects to find a "chroot"
19 # installation of the files and directories, e.g. /emul/aout.
21 # DEPENDS_${EMUL_DISTRO}.*
22 # A table that maps "modules" to NetBSD package dependencies.
25 EMUL_DISTRO= netbsd-1.2
27 # i386 and sparc switched from a.out to ELF post-1.4.
28 # arm, m68k and vax switched from a.out to ELF post-1.5.
29 # ns32k never switched from a.out.
31 .if (${EMUL_ARCH} == "arm") || (${EMUL_ARCH} == "i386") || \
32 (${EMUL_ARCH} == "m68k") || (${EMUL_ARCH} == "ns32k") || \
33 (${EMUL_ARCH} == "sparc") || (${EMUL_ARCH} == "vax")
34 EMUL_EXEC_FMT= a.out
35 .else
36 EMUL_EXEC_FMT= ELF
37 .endif
39 .if (${NATIVE_EXEC_FMT} == "ELF") && (${EMUL_EXEC_FMT} == "a.out")
40 EMULSUBDIR= emul/aout
41 OPSYS_EMULDIR= ${_OPSYS_EMULDIR.aout}
42 .else
43 EMULSUBDIR= emul/netbsd
44 OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd}
45 .endif
47 # We need a dependency only for NetBSD>=1.3.
48 .if empty(OS_VERSION:M0.[0-9]*) && empty(OS_VERSION:M1.[0-1]*) && \
49 empty(OS_VERSION:M1.2) && empty(OS_VERSION:M1.2.*)
50 DEPENDS_netbsd-1.2.base?= compat12>=1.2:../../emulators/compat12
51 .endif