-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
81 lines (68 loc) · 1.13 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# If ../makefile.top doesn't exist, then you must specify HOST=xxx on the
# `make' command line.
include ../makefile.top
include ../makefile.defs
ifeq ($(OS_NAME),windows)
HOST = windows
endif
ifeq ($(OS_NAME),sunos)
ifeq ($(MACHINE),sparc)
HOST = sun4-svr4
endif
ifeq ($(MACHINE),x86_64)
HOST = solamd64
endif
endif
ifeq ($(OS_NAME),linux)
ifeq ($(MACHINE),ppc)
HOST = linuxppc
else
ifeq ($(MACHINE),arm64)
HOST = arm64
else
ifeq ($(SIXTYFOURBIT),yes)
HOST = amd64
else
HOST = linux
endif
endif
endif
endif
ifeq ($(OS_NAME),freebsd)
HOST = freebsd
endif
ifeq ($(OS_NAME),darwin)
ifeq ($(MACHINE),arm64)
HOST = macarm
else
HOST = macosx
endif
endif
ifeq ($(OS_NAME),hp-ux)
ifeq ($(SIXTYFOURBIT),yes)
HOST = hp64
else
HOST = hpprism
endif
endif
ifeq ($(OS_NAME),irix)
HOST = sgi4d-svr4
endif
ifeq ($(OS_NAME),aix)
ifeq ($(SIXTYFOURBIT),yes)
HOST = power64
else
HOST = rs6000
endif
endif
ifeq ($(OS_NAME),osf1)
ifeq ($(MACHINE),alpha)
HOST = alpha
endif
endif
# If no HOST specified then we'd like to get an error immediately
# rather than ploughing on with an inappropriate default
ifndef HOST
HOST = unknown
endif
include Makefile.$(HOST)