-
Notifications
You must be signed in to change notification settings - Fork 0
/
Platform
34 lines (28 loc) · 697 Bytes
/
Platform
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
# Included by Rules.common.
PLATFORM := VSS_NOT_YET_PORTED
uname := $(shell sh -c 'uname -s 2>/dev/null')
ifeq ($(uname),Linux)
PLATFORM := VSS_LINUX_UBUNTU
# To detect WSL, try uname -r.
endif
ifneq ($(findstring CYGWIN,$(uname)),)
PLATFORM := VSS_CYGWIN32_NT40
endif
ifneq ($(findstring MINGW,$(uname)),)
PLATFORM := VSS_CYGWIN32_NT40
endif
ifneq ($(findstring MSYS,$(uname)),)
PLATFORM := VSS_CYGWIN32_NT40
endif
ifeq ($(uname),IRIX)
PLATFORM := VSS_IRIX_65
# PLATFORM := VSS_IRIX_63
# PLATFORM := VSS_IRIX_62
# PLATFORM := VSS_IRIX_53
endif
ifeq ($(uname),Darwin)
PLATFORM := VSS_MACOS
endif
ifeq ($(PLATFORM), VSS_NOT_YET_PORTED)
$(error "Unrecognized platform.")
endif