Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / compat13 / emulator.mk
blob50a6ce2b53e47393394986a66d2705aaa43d7d13
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 # DEPENDS_${EMUL_DISTRO}.*
18 # A table that maps "modules" to NetBSD package dependencies.
21 EMUL_DISTRO= netbsd-1.3
23 # i386 and sparc switched from a.out to ELF post-1.4.
24 # arm, m68k and vax switched from a.out to ELF post-1.5.
25 # ns32k never switched from a.out.
27 .if (${EMUL_ARCH} == "arm") || (${EMUL_ARCH} == "i386") || \
28 (${EMUL_ARCH} == "m68k") || (${EMUL_ARCH} == "ns32k") || \
29 (${EMUL_ARCH} == "sparc") || (${EMUL_ARCH} == "vax")
30 EMUL_EXEC_FMT= a.out
31 .else
32 EMUL_EXEC_FMT= ELF
33 .endif
35 .if (${NATIVE_EXEC_FMT} == "ELF") && (${EMUL_EXEC_FMT} == "a.out")
36 EMULSUBDIR= emul/aout
37 OPSYS_EMULDIR= ${_OPSYS_EMULDIR.aout}
38 .else
39 EMULSUBDIR= emul/netbsd
40 OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd}
41 .endif
43 # We need a dependency only for NetBSD>1.3.x.
44 .if empty(OS_VERSION:M0.[0-9]*) && empty(OS_VERSION:M1.[0-2]*) && \
45 empty(OS_VERSION:M1.3) && empty(OS_VERSION:M1.3.*)
46 DEPENDS_netbsd-1.3.base?= compat13>=1.3:../../emulators/compat13
47 .endif