permit multiline comments and strings in macros
[bpt/coccinelle.git] / Makefile.libs
CommitLineData
97111a47
C
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
d6ce1786
C
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
97111a47 25# pycaml library
d6ce1786
C
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 %)
97111a47
C
35
36# sexplib library
d6ce1786
C
37LOCAL_sexplib = $(SEXPDIR)/sexplib.cmo
38LOCALOPT_sexplib = $(SEXPDIR)/sexplib.cmx
39GLOBAL_sexplib = $(SEXPDIR)/sexplib.cma
40GLOBALOPT_sexplib = $(SEXPDIR)/sexplib.cmxa
97111a47 41FLAGS_sexplib =
d6ce1786 42OPTFLAGS_sexplib =
97111a47
C
43
44# pcre library
d6ce1786
C
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
97111a47
C
52
53# dynlink library
54LOCAL_dynlink =
55LOCALOPT_dynlink =
d6ce1786
C
56GLOBAL_dynlink = $(DYNLINKDIR)/dynlink.cma
57GLOBALOPT_dynlink = $(DYNLINKDIR)/dynlink.cmxa
58FLAGS_dynlink =
59OPTFLAGS_dynlink =
97111a47
C
60
61# extlib library
d6ce1786
C
62LOCAL_extlib = $(EXTLIBDIR)/extLib.cma
63LOCALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
64GLOBAL_extlib = $(EXTLIBDIR)/extLib.cma
65GLOBALOPT_extlib = $(EXTLIBDIR)/extLib.cmxa
97111a47 66FLAGS_extlib =
d6ce1786 67OPTFLAGS_extlib =
feec80c3
C
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 =
d6ce1786 75OPTFLAGS_type_conv =