1 # Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
2 # Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
3 # This file is part of Coccinelle.
5 # Coccinelle is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, according to version 2 of the License.
9 # Coccinelle is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
17 # The authors reserve the right to distribute this or future versions of
18 # Coccinelle under other licenses.
22 -include ..
/Makefile.config
24 ##############################################################################
26 ##############################################################################
29 SRC
= flag.ml config.ml
34 ##############################################################################
36 ##############################################################################
37 OCAMLCFLAGS ?
= -g
-dtypes
38 OCAMLC
=ocamlc
$(OPTBIN
) $(OCAMLCFLAGS
) $(INCLUDES
)
39 OCAMLOPT
= ocamlopt
$(OPTBIN
) $(OPTFLAGS
) $(INCLUDES
)
40 OCAMLDEP
= ocamldep
$(OPTBIN
) $(INCLUDES
)
41 OCAMLMKTOP
=ocamlmktop
-g
-custom
$(INCLUDES
)
44 OPTOBJS
= $(SRC
:.ml
=.cmx
)
47 ##############################################################################
49 ##############################################################################
52 all.opt
: $(TARGET
).cmxa
54 $(TARGET
).cma
: $(OBJS
) $(LIBS
)
55 $(OCAMLC
) -a
-o
$(TARGET
).cma
$(OBJS
)
57 $(TARGET
).cmxa
: $(OPTOBJS
) $(LIBS
:.cma
=.cmxa
)
58 $(OCAMLOPT
) -a
-o
$(TARGET
).cmxa
$(OPTOBJS
)
62 ##############################################################################
64 ##############################################################################
65 .SUFFIXES
: .ml .mli .cmo .cmi .cmx
78 rm -f
*.cm
[ioxa
] *.o
*.a
*.cmxa
*.annot
79 rm -f
*~ .
*~ gmon.out
#*#
87 $(OCAMLDEP
) *.mli
*.ml
> .depend