1 # Bitmatch syntax extension.
2 # Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library 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 GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 # $Id: Makefile.in 81 2008-05-21 09:59:21Z richard.wm.jones $
20 PACKAGE = @PACKAGE_NAME@
21 VERSION = @PACKAGE_VERSION@
23 OCAMLFIND = @OCAMLFIND@
24 OCAMLMKLIB = @OCAMLMKLIB@
29 OCAMLCPACKAGES = -package unix,str,extlib,cil -I ..
30 OCAMLCLIBS = $(OCAMLCPACKAGES) -linkpkg ../bitmatch.cma
32 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
33 OCAMLOPTLIBS = $(OCAMLOPTPACKAGES) -linkpkg ../bitmatch.cmxa
35 OCAMLDOCFLAGS = -html -sort
37 all: bitmatch-import-c bitmatch-import-c.opt
39 bitmatch-import-c: bitmatch_import_c.cmo
40 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCLIBS) $< -o $@
42 bitmatch-import-c.opt: bitmatch_import_c.cmx
43 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) $< -o $@
52 rm -f core *~ *.cmi *.cmo *.cmx *.cma *.cmxa *.a *.o
63 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
65 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
67 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) -c $<
71 .depend: $(wildcard *.ml) $(wildcard *.mli)
73 $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $^ > $@
75 ifeq ($(wildcard .depend),.depend)
79 .PHONY: depend dist check-manifest dpkg doc \
80 print-examples print-tests examples test
82 .SUFFIXES: .cmo .cmi .cmx .ml .mli .mll