blob: 6062fed8d4d145e7418d5e99d01fe282e4acacc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: arch.mk,v 1.9 2006/01/27 16:34:36 joerg Exp $
#
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
_PVM_OPSYS= NETBSD
_PVM_ARCH_cmd= ${ECHO} ${MACHINE_ARCH} | ${TR} "[a-z]" "[A-Z]"
_PVM_ARCH= ${_PVM_ARCH_cmd:sh}
.elif ${OPSYS} == "Linux"
_PVM_OPSYS= LINUX
. if !empty(MACHINE_ARCH:Malpha*)
_PVM_ARCH= ALPHA
. elif !empty(MACHINE_ARCH:Marm*)
_PVM_ARCH= ARM
. elif !empty(MACHINE_ARCH:Msparc*)
_PVM_ARCH= SPARC
. elif !empty(MACHINE_ARCH:Mhp_pa*)
_PVM_ARCH= HPPA
. elif !empty(MACHINE_ARCH:Mppc*)
_PVM_ARCH= PPC
. else
_PVM_ARCH= # empty
. endif
.elif ${OPSYS} == "SunOS"
_PVM_OPSYS= SUN4
_PVM_ARCH= SOL2 # Solaris (SunOS 5.*)
.elif ${OPSYS} == "Darwin"
_PVM_OPSYS= DARWIN
_PVM_ARCH= # empty
.elif ${OPSYS} == "DragonFly"
_PVM_OPSYS= DRAGONFLY
_PVM_ARCH= # empty
.elif ${OPSYS} == "FreeBSD"
_PVM_OPSYS= FREEBSD
_PVM_ARCH= # empty
.else
_PVM_OPSYS= UNKNOWN
_PVM_ARCH= # empty
.endif
PVM_ARCH= ${_PVM_OPSYS}${_PVM_ARCH}
PLIST_SUBST+= PVM_ARCH=${PVM_ARCH:Q}
FILES_SUBST+= PVM_ARCH=${PVM_ARCH:Q}
|