permit multiline comments and strings in macros
[bpt/coccinelle.git] / Makefile.libs
... / ...
CommitLineData
1#
2# Static configuration of Ocaml libraries
3# Add these libraries to the library list in configure in order to use them.
4#
5# Template:
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
11#
12# This file is included in the Makefile where these variables may be used depending
13# on your actual configuration.
14#
15
16
17# *Note*
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.
20#
21# *Note*
22# the order in which library includes are specified matters!
23
24
25# pycaml library
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
28# stubs if possible.
29LOCAL_pycaml = $(PYCAMLDIR)/pycaml.cma
30LOCALOPT_pycaml = $(PYCAMLDIR)/pycaml.cmxa
31GLOBAL_pycaml = $(PYCAMLDIR)/pycaml.cma
32GLOBALOPT_pycaml = $(PYCAMLDIR)/pycaml.cmxa
33FLAGS_pycaml = $(CFLAGS_pycaml:%=-ccopt %) -dllib -lpycaml_stubs -cclib -lpycaml_stubs $(PYTHON_LIBS:%=-cclib %)
34OPTFLAGS_pycaml = $(CFLAGS_pycaml:%=-ccopt %) -cclib -lpycaml_stubs $(PYTHON_LIBS:%=-cclib %)
35
36# sexplib library
37LOCAL_sexplib = $(SEXPDIR)/sexplib.cmo
38LOCALOPT_sexplib = $(SEXPDIR)/sexplib.cmx
39GLOBAL_sexplib = $(SEXPDIR)/sexplib.cma
40GLOBALOPT_sexplib = $(SEXPDIR)/sexplib.cmxa
41FLAGS_sexplib =
42OPTFLAGS_sexplib =
43
44# pcre library
45# Note: see the comment of the pycaml library about the double appearance of the stubs library.
46LOCAL_pcre = $(PCREDIR)/pcre.cmo
47LOCALOPT_pcre = $(PCREDIR)/pcre.cmx
48GLOBAL_pcre = $(PCREDIR)/pcre.cma
49GLOBALOPT_pcre = $(PCREDIR)/pcre.cmxa
50FLAGS_pcre = $(PCRE_LIBS:%=-ccopt %) -dllib -lpcre_stubs -cclib -lpcre_stubs
51OPTFLAGS_pcre = $(PCRE_LIBS:%=-ccopt %) -cclib -lpcre_stubs
52
53# dynlink library
54LOCAL_dynlink =
55LOCALOPT_dynlink =
56GLOBAL_dynlink = $(DYNLINKDIR)/dynlink.cma
57GLOBALOPT_dynlink = $(DYNLINKDIR)/dynlink.cmxa
58FLAGS_dynlink =
59OPTFLAGS_dynlink =
60
61# extlib library
62LOCAL_extlib = $(EXTLIBDIR)/extLib.cma
63LOCALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
64GLOBAL_extlib = $(EXTLIBDIR)/extLib.cma
65GLOBALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
66FLAGS_extlib =
67OPTFLAGS_extlib =
68
69# type conv library
70LOCAL_type_conv = pa_type_conv.cma
71LOCALOPT_type_conv = pa_type_conv.cmxa
72GLOBAL_type_conv = pa_type_conv.cma
73GLOBALOPT_type_conv = pa_type_conv.cma
74FLAGS_type_conv =
75OPTFLAGS_type_conv =