summaryrefslogtreecommitdiff
path: root/third_party/mcpc/mk/step0.mk
blob: 8ec5d72e59513fee6fc6b43326286d212baf90f8 (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
ifeq ($(SHELL),/bin/sh)
  is_sh = xxx
  is_dirsh = xxx
  unameall = $(shell uname -a)
  is_linux = $(findstring Linux,$(unameall))
  is_cygwin = $(findstring Cygwin,$(unameall))
  is_mingw = $(findstring MINGW64_NT,$(unameall))
  is_macos = $(findstring Darwin,$(unameall))
else ifneq (,$(findstring /sh.exe,$(SHELL)))
  # indirectly enter bash (but the only way we enter GH win)
  is_sh = xxx
  is_indirsh = xxx
  is_win = xxx
  unameall = $(shell uname -a)
  is_msys = $(findstring MSYS_NT,$(unameall))
  is_mingw = $(findstring MINGW64_NT,$(unameall))
  sysinfo = $(shell systeminfo)
  ifneq (,$(findstring Windows Server 2019,$(sysinfo)))
    is_win2019 = xxx
  endif
  ifneq (,$(findstring Windows Server 2022,$(sysinfo)))
    is_win2022 = xxx
  endif
  ifneq (,$(findstring Windows Server 2025,$(sysinfo)))
    is_win2025 = xxx
  endif
else ifneq (,$(findstring sh.exe,$(SHELL)))
  is_win = xxx
  is_cmd = xxx
endif
isnot_done_ccdefs = xxx