File: platform_macosx.GNU

package info (click to toggle)
ace 7.0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 47,260 kB
  • sloc: cpp: 336,263; perl: 31,547; ansic: 11,648; sh: 1,911; python: 529; yacc: 511; xml: 330; lex: 158; lisp: 116; makefile: 89; csh: 20; tcl: 5
file content (58 lines) | stat: -rw-r--r-- 2,380 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# include the platform_macosx_*.GNU based on the detected MacOS version

MACOS_RELEASE_VERSION=$(shell sw_vers -productVersion)
MACOS_REL_WORDS := $(subst ., ,${MACOS_RELEASE_VERSION})
MACOS_MAJOR_VERSION = $(word 1,${MACOS_REL_WORDS})
MACOS_MINOR_VERSION = $(word 2,${MACOS_REL_WORDS})
MACOS_BUILD_VERSION = $(word 3,${MACOS_REL_WORDS})

MACOS_CODENAME_VER_10_2   :=
MACOS_CODENAME_VER_10_3   := panther
MACOS_CODENAME_VER_10_4   := tiger
MACOS_CODENAME_VER_10_5   := leopard
MACOS_CODENAME_VER_10_6   := snowleopard
MACOS_CODENAME_VER_10_7   := lion
MACOS_CODENAME_VER_10_8   := mountainlion
MACOS_CODENAME_VER_10_9   := mavericks
MACOS_CODENAME_VER_10_10  := yosemite
MACOS_CODENAME_VER_10_11  := elcapitan
MACOS_CODENAME_VER_10_12  := sierra
MACOS_CODENAME_VER_10_13  := highsierra
MACOS_CODENAME_VER_10_14  := mojave
MACOS_CODENAME_VER_10_latest := mojave
MACOS_CODENAME_VER_11_0   := bigsur
MACOS_CODENAME_VER_11_1   := bigsur
MACOS_CODENAME_VER_11_2   := bigsur
MACOS_CODENAME_VER_11_latest := bigsur
MACOS_CODENAME_VER_12_0   := monterey
MACOS_CODENAME_VER_12_latest := monterey

MACOS_CODENAME = $(MACOS_CODENAME_VER_$(MACOS_MAJOR_VERSION)_$(MACOS_MINOR_VERSION))

ifeq ($(MACOS_MAJOR_VERSION),10)
  ifeq ($(shell test $(MACOS_MINOR_VERSION) -gt 14; echo $$?),0)
    ## if the detected version is greater than the latest know version,
    ## just use the latest known version
    MACOS_CODENAME = $(MACOS_CODENAME_VER_10_latest)
  else ifeq ($(shell test $(MACOS_MINOR_VERSION) -lt 2; echo $$?),0)
    ## Unsupported minor version
    $(error Unsupported MacOS version $(MACOS_RELEASE_VERSION))
  endif
else ifeq ($(MACOS_MAJOR_VERSION),11)
  ifeq ($(shell test $(MACOS_MINOR_VERSION) -gt 2; echo $$?),0)
    ## if the detected version is greater than the latest know version,
    ## just use the latest known version
    MACOS_CODENAME = $(MACOS_CODENAME_VER_11_latest)
  endif
else ifeq ($(MACOS_MAJOR_VERSION),12)
  ifeq ($(shell test $(MACOS_MINOR_VERSION) -gt 0; echo $$?),0)
    ## if the detected version is greater than the latest know version,
    ## just use the latest known version
    MACOS_CODENAME = $(MACOS_CODENAME_VER_12_latest)
  endif
else
  ## Unsupported major version -- will fallback to the last known version.
  MACOS_CODENAME = $(MACOS_CODENAME_VER_12_latest)
endif

include $(ACE_ROOT)/include/makeinclude/platform_macosx_$(MACOS_CODENAME).GNU