-
Notifications
You must be signed in to change notification settings - Fork 2
/
mkconfig
26 lines (21 loc) · 889 Bytes
/
mkconfig
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
# -*- sh -*-
OPT=.opt
# Limit to just stdcompat! This is Xix!
EXTERNAL_LIB=`ocamlfind query stdcompat`
EXTRA_FLAGS=`ocamlcflags`
# -g so we can get good backtrace
#WARNING_FLAGS?=-w +A-4-29-6-45-41-44-48 -warn-error +a
#OCAMLCFLAGS=-thread $(WARNING_FLAGS) $(OCAMLCFLAGS_EXTRA)
COMPFLAGS=-I $EXTERNAL_LIB -g $EXTRA_FLAGS
# We need -g for good backtrace.
# We need -custom because of dllstdcompat__stubs, otherwise
# we would need to set CAML_LD_LIBRARY_PATH before running the programs.
# LATER: would be good to remove if one day we want to store
# a BOOTSTRAP/mk and we want a really portable bytecode across platforms.
# TODO? for windows under cygwin might need -custom too?
LINKFLAGS=-I $EXTERNAL_LIB stdcompat.cma -g -custom
OCAMLC=ocamlc$OPT
OCAMLLEX=ocamllex #-ml # -ml for debugging lexer, but slightly slower
OCAMLYACC=ocamlyacc -v
OCAMLDEP=ocamldep
OCAMLOPT=ocamlopt$OPT