-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
92 lines (78 loc) · 1.45 KB
/
Makefile
File metadata and controls
92 lines (78 loc) · 1.45 KB
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
82
83
84
85
86
87
88
89
90
91
92
# Start with a decision as to whether compiling at a Franz Inc site or not:
HOSTNAME := $(shell hostname -d)
# for testing - uncomment to force a non-Franz situation
#HOSTNAME := foo
ifeq ($(findstring franz.com,$(HOSTNAME)),franz.com)
ATFRANZ = yes
include ../makefile.top
include ../makefile.defs
else
# Be sure to link or copy one of the files in makefile.templates to
# Makefile.nonfranz and modify the paths to the lisp executable and
# image:
include Makefile.nonfranz
endif
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)