forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.config
105 lines (87 loc) · 2.53 KB
/
Makefile.config
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
93
94
95
96
97
98
99
100
101
102
103
104
105
### Compile-time configuration
########## General configuration
### Where to install the binaries
BINDIR=/usr/local/bin
### Where to install the standard library
LIBDIR=/usr/local/lib/camlsl
### Where to install the man pages
MANDIR=/usr/local/man/man1
MANEXT=1
### Do #! scripts work on your system?
### Beware: on some systems (e.g. SunOS 4), this will work only if
### the string "#!$(BINDIR)/cslrun" is less than 32 characters long.
### In doubt, set SHARPBANGSCRIPTS to false.
SHARPBANGSCRIPTS=true
#SHARPBANGSCRIPTS=false
########## Configuration for the bytecode compiler
### Which C compiler to use for the bytecode interpreter.
### Performance of the bytecode interpreter is *much* improved
### if Gnu CC version 2 is used.
BYTECC=gcc
#BYTECC=cc
### Additional compile-time options for $(BYTECC).
# If using gcc on Intel 386 or Motorola 68k:
#BYTECCCOMPOPTS=-fno-defer-pop
# If using gcc and being superstitious:
BYTECCCOMPOPTS=-Wall
# Otherwise:
#BYTECCCOMPOPTS=
### Additional link-time options
CCLINKOPTS=
### If using GCC on a Dec Alpha under OSF1:
LOWADDRESSES=-Xlinker -taso
# Otherwise:
#LOWADDRESSES=
### Libraries needed
# On most platforms:
CCLIBS=$(TERMCAPLIBS) -lm
# For Solaris 2:
#CCLIBS=$(TERMCAPLIBS) -lnsl -lsocket -lm
### How to invoke ranlib
# BSD-style:
RANLIB=ranlib
# System V-style:
#RANLIB=ar -rs
# If ranlib is not needed at all:
#RANLIB=true
############# Configuration for the native-code compiler
### Name of architecture for the native-code compiler
### Currently supported:
###
### alpha DecStation 3000 under OSF1
### sparc Sun Sparcstation under SunOS 4.1 or Solaris 2
### i386 Intel 386 / 486 / Pentium PCs under Linux
### mips DecStation 3100 and 5000 under Ultrix 4
###
### Set ARCH=none if your machine is not supported
ARCH=alpha
#ARCH=sparc
#ARCH=i386
#ARCH=mips
#ARCH=none
### Name of operating system family for the native-code compiler
### Currently needed only if ARCH=sparc to distinguish between
### SunOS and Solaris.
### Set SYSTEM=unknown in all other cases.
#SYSTEM=sunos
#SYSTEM=solaris
SYSTEM=unknown
### Which C compiler to use for the native-code compiler.
### cc is better than gcc on the Mips and Alpha.
NATIVECC=cc
#NATIVECC=gcc
### Additional compile-time options for $(NATIVECC).
#NATIVECCCOMPOPTS=
# For cc on the Alpha:
NATIVECCCOMPOPTS=-std1
# For cc on the Mips:
#NATIVECCCOMPOPTS=-std
# For gcc if superstitious:
#NATIVECCCOMPOPTS=-Wall
### Flags for the assembler
# For the Alpha or the Mips:
ASFLAGS=-O2
# For the Sparc:
#ASFLAGS=-P -DSYS_$(SYSTEM)
# Otherwise:
#ASFLAGS=