1995-05-04 03:15:53 -07:00
|
|
|
### Compile-time configuration
|
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
########## 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?
|
1995-08-09 02:55:27 -07:00
|
|
|
### 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.
|
1995-08-08 05:17:31 -07:00
|
|
|
SHARPBANGSCRIPTS=true
|
|
|
|
#SHARPBANGSCRIPTS=false
|
|
|
|
|
1995-08-30 09:53:49 -07:00
|
|
|
### Make sure that "make" calls "/bin/sh" to execute commands
|
|
|
|
SHELL=/bin/sh
|
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
########## Configuration for the bytecode compiler
|
1995-07-02 09:40:47 -07:00
|
|
|
|
1995-07-18 01:39:40 -07:00
|
|
|
### Which C compiler to use for the bytecode interpreter.
|
1995-07-02 09:40:47 -07:00
|
|
|
### Performance of the bytecode interpreter is *much* improved
|
1995-08-08 05:17:31 -07:00
|
|
|
### if Gnu CC version 2 is used.
|
1995-07-18 01:39:40 -07:00
|
|
|
BYTECC=gcc
|
1995-08-09 02:55:27 -07:00
|
|
|
#BYTECC=cc
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-07-18 01:39:40 -07:00
|
|
|
### Additional compile-time options for $(BYTECC).
|
1995-05-04 03:15:53 -07:00
|
|
|
# If using gcc on Intel 386 or Motorola 68k:
|
1995-09-12 01:44:21 -07:00
|
|
|
# (the -fno-defer-pop option circumvents a gcc bug)
|
1995-11-05 09:34:14 -08:00
|
|
|
#BYTECCCOMPOPTS=-fno-defer-pop -Wall
|
1995-05-04 03:15:53 -07:00
|
|
|
# If using gcc and being superstitious:
|
1995-11-05 09:34:14 -08:00
|
|
|
BYTECCCOMPOPTS=-Wall
|
1995-11-26 06:50:05 -08:00
|
|
|
# Under NextStep:
|
|
|
|
#BYTECCCOMPOPTS=-U__GNUC__ -fno-defer-pop -Wall
|
1995-05-04 03:15:53 -07:00
|
|
|
# Otherwise:
|
1995-08-08 05:17:31 -07:00
|
|
|
#BYTECCCOMPOPTS=
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-09-27 03:46:25 -07:00
|
|
|
### Additional link-time options for $(BYTECC)
|
|
|
|
BYTECCLINKOPTS=
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
### If using GCC on a Dec Alpha under OSF1:
|
1995-11-05 09:34:14 -08:00
|
|
|
LOWADDRESSES=-Xlinker -taso
|
1995-05-04 03:15:53 -07:00
|
|
|
# Otherwise:
|
1995-11-05 09:34:14 -08:00
|
|
|
#LOWADDRESSES=
|
1995-07-18 10:41:36 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
### Libraries needed
|
1995-08-08 05:17:31 -07:00
|
|
|
# On most platforms:
|
1995-12-06 07:45:40 -08:00
|
|
|
CCLIBS=$(TERMCAPLIBS) $(SOCKETLIBS) -lm
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
### How to invoke ranlib
|
1995-05-04 03:15:53 -07:00
|
|
|
# BSD-style:
|
|
|
|
RANLIB=ranlib
|
|
|
|
# System V-style:
|
1995-08-08 05:17:31 -07:00
|
|
|
#RANLIB=ar -rs
|
1995-05-04 03:15:53 -07:00
|
|
|
# If ranlib is not needed at all:
|
1995-08-08 05:17:31 -07:00
|
|
|
#RANLIB=true
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
############# Configuration for the native-code compiler
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
### 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
|
1995-10-23 09:54:03 -07:00
|
|
|
### i386 Intel 386 / 486 / Pentium PCs under Linux, NextStep or FreeBSD
|
1995-08-08 05:17:31 -07:00
|
|
|
### mips DecStation 3100 and 5000 under Ultrix 4
|
1995-11-26 06:50:05 -08:00
|
|
|
### hppa HP 9000/700 under NextStep
|
1996-01-08 02:14:54 -08:00
|
|
|
### power IBM RS6000 and PowerPC workstations under AIX 3.2
|
1995-08-08 05:17:31 -07:00
|
|
|
###
|
|
|
|
### Set ARCH=none if your machine is not supported
|
1995-11-05 09:34:14 -08:00
|
|
|
ARCH=alpha
|
1995-08-08 05:17:31 -07:00
|
|
|
#ARCH=sparc
|
1995-11-05 09:34:14 -08:00
|
|
|
#ARCH=i386
|
1995-08-08 05:17:31 -07:00
|
|
|
#ARCH=mips
|
1995-11-26 06:50:05 -08:00
|
|
|
#ARCH=hppa
|
1995-08-08 05:17:31 -07:00
|
|
|
#ARCH=none
|
|
|
|
|
1996-01-08 02:14:54 -08:00
|
|
|
### Name of architecture model for the native-code compiler.
|
|
|
|
### Some architectures come in several slightly different flavors
|
|
|
|
### that share a common code generator. This variable tailors the
|
|
|
|
### behavior of the code generator to the particular flavor used.
|
|
|
|
### Currently needed only if ARCH=power; leave MODEL=default for
|
|
|
|
### other architectures.
|
|
|
|
### If ARCH=power: choose between
|
|
|
|
### MODEL=rs6000 The original IBM RS6000 workstations
|
|
|
|
### (RIOS and RIOS2 processors)
|
|
|
|
### MODEL=ppc The newer PowerPC processors
|
|
|
|
### (Motorola/IBM PPC601, PPC603, PPC604, etc)
|
|
|
|
### The Motorola PPC601 is compatible with both models, but the newer
|
|
|
|
### PPCs will work only with MODEL=ppc, and the older IBM RS6000
|
|
|
|
### workstations will work only with MODEL=rs6000.
|
|
|
|
###
|
|
|
|
### For other architectures: leave MODEL=default
|
|
|
|
###
|
|
|
|
#MODEL=rs6000
|
|
|
|
#MODEL=ppc
|
|
|
|
MODEL=default
|
|
|
|
|
1995-10-31 01:27:00 -08:00
|
|
|
### Name of operating system family for the native-code compiler.
|
|
|
|
### If ARCH=sparc: choose between
|
|
|
|
### SYSTEM=sunos SunOS 4.1
|
|
|
|
### SYSTEM=solaris Solaris 2
|
|
|
|
###
|
|
|
|
### If ARCH=i386: choose between
|
|
|
|
### SYSTEM=linux Linux with a.out binaries
|
|
|
|
### SYSTEM=linux_elf Linux with ELF binaries
|
1995-10-31 02:48:54 -08:00
|
|
|
### SYSTEM=bsd FreeBSD, probably works for NetBSD also
|
1995-10-31 01:27:00 -08:00
|
|
|
### SYSTEM=nextstep NextStep
|
|
|
|
###
|
|
|
|
### For other architectures: set SYSTEM=unknown
|
|
|
|
###
|
1995-08-08 05:17:31 -07:00
|
|
|
#SYSTEM=sunos
|
|
|
|
#SYSTEM=solaris
|
1995-11-05 09:34:14 -08:00
|
|
|
#SYSTEM=linux
|
1995-10-31 01:27:00 -08:00
|
|
|
#SYSTEM=linux_elf
|
|
|
|
#SYSTEM=bsd
|
|
|
|
#SYSTEM=nextstep
|
1995-11-05 09:34:14 -08:00
|
|
|
SYSTEM=unknown
|
1995-08-08 05:17:31 -07:00
|
|
|
|
|
|
|
### Which C compiler to use for the native-code compiler.
|
|
|
|
### cc is better than gcc on the Mips and Alpha.
|
1995-11-05 09:34:14 -08:00
|
|
|
NATIVECC=cc
|
|
|
|
#NATIVECC=gcc
|
1995-08-08 05:17:31 -07:00
|
|
|
|
|
|
|
### Additional compile-time options for $(NATIVECC).
|
1995-08-09 02:55:27 -07:00
|
|
|
# For cc on the Alpha:
|
1995-11-05 09:34:14 -08:00
|
|
|
NATIVECCCOMPOPTS=-std1
|
1995-08-09 02:55:27 -07:00
|
|
|
# For cc on the Mips:
|
|
|
|
#NATIVECCCOMPOPTS=-std
|
|
|
|
# For gcc if superstitious:
|
1995-11-05 09:34:14 -08:00
|
|
|
#NATIVECCCOMPOPTS=-Wall
|
1995-08-08 05:17:31 -07:00
|
|
|
|
1995-09-27 03:46:25 -07:00
|
|
|
### Additional link-time options for $(NATIVECC)
|
1995-11-27 06:10:43 -08:00
|
|
|
# Under NextStep:
|
1995-09-27 03:46:25 -07:00
|
|
|
#NATIVECCLINKOPTS=-Xlinker -preload
|
|
|
|
# Otherwise:
|
|
|
|
NATIVECCLINKOPTS=
|
|
|
|
|
1995-08-08 05:17:31 -07:00
|
|
|
### Flags for the assembler
|
|
|
|
# For the Alpha or the Mips:
|
1995-11-05 09:34:14 -08:00
|
|
|
ASFLAGS=-O2
|
1995-08-08 05:17:31 -07:00
|
|
|
# For the Sparc:
|
|
|
|
#ASFLAGS=-P -DSYS_$(SYSTEM)
|
1995-10-31 01:27:00 -08:00
|
|
|
# For the Intel 386:
|
1995-11-05 09:34:14 -08:00
|
|
|
#ASFLAGS=-DSYS_$(SYSTEM)
|
1995-11-26 06:50:05 -08:00
|
|
|
# For the HPPA:
|
|
|
|
#ASFLAGS=
|
1995-11-05 09:34:14 -08:00
|
|
|
|
|
|
|
############# Configuration for the contributed libraries
|
|
|
|
|
|
|
|
### Which libraries to compile and install
|
|
|
|
# Currently available:
|
|
|
|
# unix Unix system calls
|
|
|
|
# str Regular expressions and high-level string processing
|
|
|
|
# num Arbitrary-precision rational arithmetic
|
1995-11-15 08:39:17 -08:00
|
|
|
# threads Lightweight concurrent processes
|
1995-11-05 09:34:14 -08:00
|
|
|
# graph Portable drawing primitives for X11
|
1995-11-09 05:20:03 -08:00
|
|
|
# dynlink Dynamic linking of bytecode
|
1995-11-06 03:04:07 -08:00
|
|
|
#
|
1995-11-15 08:39:17 -08:00
|
|
|
OTHERLIBRARIES=unix str num threads graph dynlink
|
1995-11-05 09:34:14 -08:00
|
|
|
|
|
|
|
### How to invoke the C preprocessor
|
|
|
|
# On most machines:
|
|
|
|
CPP=/lib/cpp -P
|
|
|
|
# Under Solaris:
|
|
|
|
#CPP=/usr/ccs/lib/cpp -P
|
1995-12-06 07:45:40 -08:00
|
|
|
# Under FreeBSD:
|
|
|
|
#CPP=cpp -P
|
1995-11-05 09:34:14 -08:00
|
|
|
|
|
|
|
### Name of the target architecture for the "num" library
|
|
|
|
# Known targets:
|
|
|
|
# 68K vax ns mips alpha pyramid i960
|
|
|
|
# sparc supersparc sparc-solaris supersparc-solaris
|
1995-11-09 05:20:03 -08:00
|
|
|
# See the file otherlibs/num/README for more explanations.
|
1995-11-05 09:34:14 -08:00
|
|
|
# If you don't know, leave BIGNUM_ARCH=C, which selects a portable
|
|
|
|
# C implementation of these routines.
|
|
|
|
BIGNUM_ARCH=C
|
|
|
|
|
|
|
|
### Location of the include directory containing the X11/*.h includes
|
|
|
|
# Needed for the "graph" package
|
|
|
|
# Usually:
|
|
|
|
X11_INCLUDES=/usr/include
|
|
|
|
# For SunOS with OpenLook:
|
|
|
|
#X11_INCLUDES=/usr/openwin/include
|
|
|
|
|
|
|
|
### Location of the directory containing the X11 libraries.
|
|
|
|
# Needed for the "graph" package
|
|
|
|
# Usually:
|
|
|
|
X11_LIB=/usr/lib
|
|
|
|
# For SunOS with OpenLook:
|
|
|
|
#X11_LIB=/usr/openwin/lib
|