# Makefile.config.  Generated from Makefile.config.in by configure.

#**************************************************************************
#*                                                                        *
#*                                 OCaml                                  *
#*                                                                        *
#*            Xavier Leroy, projet Cristal, INRIA Rocquencourt            *
#*                                                                        *
#*   Copyright 1999 Institut National de Recherche en Informatique et     *
#*     en Automatique.                                                    *
#*                                                                        *
#*   All rights reserved.  This file is distributed under the terms of    *
#*   the GNU Lesser General Public License version 2.1, with the          *
#*   special exception on linking described in the file LICENSE.          *
#*                                                                        *
#**************************************************************************

# The configuration Makefile

## The EMPTY variable, used in other definitions
EMPTY=

## Arguments passed to the configure script

CONFIGURE_ARGS=--prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var --disable-silent-rules --disable-gtk-doc

## Top build directory

TOP_BUILDDIR = .

## Installation directories

prefix=/usr/local

exec_prefix=${prefix}

### Where to install the binaries
BINDIR=${exec_prefix}/bin

datarootdir=${prefix}/share

### Where to install the standard library
LIBDIR=${exec_prefix}/lib/ocaml

### Where to install the stub code for the standard library
STUBLIBDIR=${exec_prefix}/lib/ocaml/stublibs

### Where to install the man pages
# Man pages for commands go in $(MANDIR)/man$(PROGRAMS_MAN_SECTION)
# Man pages for the library go in $(MANDIR)/man/man$(LIBRARIES_MAN_SECTION)
MANDIR=/usr/local/man
PROGRAMS_MAN_SECTION=1
LIBRARIES_MAN_SECTION=3

### Do #! scripts work on your system?
### Beware: on some systems (e.g. SunOS 4), this will work only if
### the string "#!$(BINDIR)/ocamlrun" is less than 32 characters long.
### In doubt, set HASHBANGSCRIPTS to false.
HASHBANGSCRIPTS=true

### Path to the libtool script
LIBTOOL = $(TOP_BUILDDIR)/libtool

### Which C compiler to use
TOOLPREF=
CC=cc

CC_HAS_DEBUG_PREFIX_MAP=true
AS_HAS_DEBUG_PREFIX_MAP=false

### Additional link-time options
# To support dynamic loading of shared libraries (they need to look at
# our own symbols):
OC_LDFLAGS=  -L/usr/local/lib -Wl,-E

### How to invoke the C preprocessor through the C compiler
CPP=cc -E

### How to invoke ranlib
RANLIB=ranlib
RANLIBCMD=ranlib

### How to invoke ar
ARCMD=ar

### Extension of object files
O=o
EXT_OBJ=.o

### How to tell the C compiler to output an object file
OUTPUTOBJ=-o $(EMPTY)

### Extension of static libraries
A=a
EXT_LIB=.a

### Extension of assembler files
S=s
EXT_ASM=.s

### Extension for shared libraries
SO=so
EXT_DLL=.so

SHAREDLIB_CFLAGS=-fPIC

# Compile-time option to $(CC) to add a directory to be searched
# at run-time for shared libraries
RPATH=-Wl,-rpath,

############# Configuration for the native-code compiler

### Name of architecture for the native-code compiler
### Currently supported:
###
### i386        Intel Pentium PCs under Linux, *BSD*, NextStep
### power       Macintosh under Mac OS X and Linux
### arm         ARM under Linux
###
### Set ARCH=none if your machine is not supported
ARCH=none

# Whether the architecture has 64 bits
ARCH64=true

### 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: set MODEL=ppc
### For other architectures: leave MODEL=default
###
MODEL=default

### Name of operating system family for the native-code compiler.
SYSTEM=unknown

### Command and flags to use for assembling ocamlopt-generated code
ASM=

### Command and flags to use for assembling .S files (often with preprocessing)
ASPP=

### Set to "true" to install ".byte" executables (ocamlc.byte, etc.)
INSTALL_BYTECODE_PROGRAMS=true

############# 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
#       systhreads      Same as threads, requires POSIX threads
#       dynlink         Dynamic linking of bytecode
#       bigarray        Large, multidimensional numerical arrays
OTHERLIBRARIES=dynlink unix bigarray str systhreads

### Link-time options to ocamlc or ocamlopt for linking with POSIX threads
# Needed for the "systhreads" package
PTHREAD_LINK=-lpthread
PTHREAD_CAML_LINK=$(addprefix -cclib ,$(PTHREAD_LINK))

UNIX_OR_WIN32=unix
UNIXLIB=unix
LIBBFD_LINK=  -L/usr/local/lib -Wl,-E -lbfd -liberty -lz
LIBBFD_INCLUDE=
INSTALL_SOURCE_ARTIFACTS=true

OC_CFLAGS=-O2 -fno-strict-aliasing -fwrapv -O2 -pipe  -I/usr/local/include  -Wall
OC_CPPFLAGS= -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE 
OCAMLC_CFLAGS=-O2 -fno-strict-aliasing -fwrapv -O2 -pipe  -I/usr/local/include  -fPIC

OCAMLC_CPPFLAGS= -D_FILE_OFFSET_BITS=64 -D_REENTRANT
BYTECCLIBS= -lm  -lpthread 
EXE=
OUTPUTEXE=-o $(EMPTY)
SUPPORTS_SHARED_LIBRARIES=true
MKSHAREDLIBRPATH=-Wl,-rpath,
DYNLINKOPTS=
NATDYNLINK=false
NATDYNLINKOPTS=-Wl,-E
SYSLIB=-l$(1)
MKLIB=rm -f $(1) && ar rc $(1) $(2) && ranlib $(1)
OCAMLOPT_CFLAGS=-O2 -fno-strict-aliasing -fwrapv -O2 -pipe  -I/usr/local/include 
OCAMLOPT_CPPFLAGS= -D_FILE_OFFSET_BITS=64 -D_REENTRANT
NATIVECCLIBS= -lm 
SYSTHREAD_SUPPORT=true
PACKLD=ld -r -o $(EMPTY)
IFLEXDIR=
EXTRALIBS=
CCOMPTYPE=cc
TOOLCHAIN=cc
CMXS=cmx

# On Windows, MKDLL, MKEXE and MKMAINDLL must ultimately be equivalent to
#   $(FLEXLINK_CMD) $(FLEXLINK_FLAGS) [-exe|-maindll]
# or OCAML_FLEXLINK overriding will not work (see utils/config.mlp)

MKEXE=$(CC) $(OC_CFLAGS) $(OC_CPPFLAGS) $(OC_LDFLAGS)
MKDLL=cc -shared   -L/usr/local/lib -Wl,-E
MKMAINDLL=cc -shared   -L/usr/local/lib -Wl,-E

MKEXEDEBUGFLAG=-g
RUNTIMED=true
RUNTIMEI=true
WITH_DEBUGGER=ocamldebugger
WITH_CAMLTEX=true
WITH_OCAMLDOC=ocamldoc
ASM_CFI_SUPPORTED=false
WITH_FRAME_POINTERS=false
WITH_SPACETIME=false
ENABLE_CALL_COUNTS=true
WITH_PROFINFO=false
PROFINFO_WIDTH=0
LIBUNWIND_AVAILABLE=false
LIBUNWIND_INCLUDE_FLAGS=
LIBUNWIND_LINK_FLAGS=
WITH_FPIC=false
TARGET=mips64-unknown-openbsd6.6
HOST=mips64-unknown-openbsd6.6
FLAMBDA=false
WITH_FLAMBDA_INVARIANTS=false
FORCE_SAFE_STRING=false
DEFAULT_SAFE_STRING=true
WINDOWS_UNICODE=0
AFL_INSTRUMENT=false
MAX_TESTSUITE_DIR_RETRIES=0
FLAT_FLOAT_ARRAY=true
AWK=awk


### Native command to build ocamlrun.exe

ifeq "$(TOOLCHAIN)" "msvc"
  MERGEMANIFESTEXE=test ! -f $(1).manifest \
          || mt -nologo -outputresource:$(1) -manifest $(1).manifest \
          && rm -f $(1).manifest
  MKEXE_BOOT=$(CC) $(OC_CFLAGS) $(OUTPUTEXE)$(1) $(2) \
    /link /subsystem:console $(OC_LDFLAGS) && ($(MERGEMANIFESTEXE))
else
  MKEXE_BOOT=$(CC) $(OC_CFLAGS) $(OC_LDFLAGS) $(OUTPUTEXE)$(1) $(2)
endif # ifeq "$(TOOLCHAIN)" "msvc"

# The following variables were defined only in the Windows-specific makefiles.
# They were not defined by the configure script used on Unix systems,
# so we also make sure to provide them only under Windows
# User code should absolutely not rely on their presence because
# in the future their definition may be moved to a more private part of
# the compiler's build system
ifeq "$(UNIX_OR_WIN32)" "win32"
  DISTRIB=$(prefix)
  OTOPDIR=$(WINTOPDIR)
  CTOPDIR=$(WINTOPDIR)
  CYGPATH=cygpath -m
  DIFF=/usr/bin/diff -q --strip-trailing-cr
  FIND=/usr/bin/find
  SORT=/usr/bin/sort
  SET_LD_PATH=PATH="$(PATH):$(LD_PATH)"
  FLEXLINK_CMD=flexlink
  MKEXE_ANSI=$(FLEXLINK) -exe
  FLEXDLL_CHAIN=
  # FLEXLINK_FLAGS must be safe to insert in an OCaml string
  #   (see ocamlmklibconfig.ml in tools/Makefile)
  FLEXLINK_FLAGS=
  FLEXLINK=$(FLEXLINK_CMD) $(FLEXLINK_FLAGS)
endif # ifeq "$(UNIX_OR_WIN32)" "win32"
