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