2 # Static configuration of Ocaml libraries
3 # Add these libraries to the library list in configure in order to use them.
6 # LOCAL_$lib = modules to include when compiling $lib locally with bytecode ocaml
7 # LOCALOPT_$lib = moduels to include when compiling $lib locally with optimizing ocaml
8 # GLOBAL_$lib = modules to include when using $lib globally with bytecode ocaml
9 # GLOBALOPT_$lib = modules to include when using $lib globally with optimizing ocaml
10 # FLAGS_$lib = extra flags to pass to optimizing ocaml when using $lib at link time
12 # This file is included in the Makefile where these variables may be used depending
13 # on your actual configuration.
18 # Pay attention to the difference between -cclib and -ccopt: although the documentation
19 # of -ccopt suggest that it subsumes -cclib, be sure to use -cclib for library includes.
22 # the order in which library includes are specified matters!
26 # Note: we added the pycaml_stubs wrapper twice: once for dynamic and once for
27 # static linking. The ocaml compiler should use the static linking with the
29 LOCAL_pycaml = $(PYCAMLDIR)/pycaml.cma
30 LOCALOPT_pycaml = $(PYCAMLDIR)/pycaml.cmxa
31 GLOBAL_pycaml = $(PYCAMLDIR)/pycaml.cma
32 GLOBALOPT_pycaml = $(PYCAMLDIR)/pycaml.cmxa
33 FLAGS_pycaml = $(CFLAGS_pycaml:%=-ccopt %) -dllib -lpycaml_stubs -cclib -lpycaml_stubs $(PYTHON_LIBS:%=-cclib %)
34 OPTFLAGS_pycaml = $(CFLAGS_pycaml:%=-ccopt %) -cclib -lpycaml_stubs $(PYTHON_LIBS:%=-cclib %)
37 LOCAL_sexplib = $(SEXPDIR)/sexplib.cmo
38 LOCALOPT_sexplib = $(SEXPDIR)/sexplib.cmx
39 GLOBAL_sexplib = $(SEXPDIR)/sexplib.cma
40 GLOBALOPT_sexplib = $(SEXPDIR)/sexplib.cmxa
45 # Note: see the comment of the pycaml library about the double appearance of the stubs library.
46 LOCAL_pcre = $(PCREDIR)/pcre.cmo
47 LOCALOPT_pcre = $(PCREDIR)/pcre.cmx
48 GLOBAL_pcre = $(PCREDIR)/pcre.cma
49 GLOBALOPT_pcre = $(PCREDIR)/pcre.cmxa
50 FLAGS_pcre = $(PCRE_LIBS:%=-ccopt %) -dllib -lpcre_stubs -cclib -lpcre_stubs
51 OPTFLAGS_pcre = $(PCRE_LIBS:%=-ccopt %) -cclib -lpcre_stubs
56 GLOBAL_dynlink = $(DYNLINKDIR)/dynlink.cma
57 GLOBALOPT_dynlink = $(DYNLINKDIR)/dynlink.cmxa
62 LOCAL_extlib = $(EXTLIBDIR)/extLib.cma
63 LOCALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
64 GLOBAL_extlib = $(EXTLIBDIR)/extLib.cma
65 GLOBALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
70 LOCAL_type_conv = pa_type_conv.cma
71 LOCALOPT_type_conv = pa_type_conv.cmxa
72 GLOBAL_type_conv = pa_type_conv.cma
73 GLOBALOPT_type_conv = pa_type_conv.cma