85b2619320f1c44b565f427d2b95b449c4c8b3a5
[virt-mem.git] / extract / codegen / Makefile.in
1 # virt-mem
2 # @configure_input@
3 # Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later version.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
18
19 PACKAGE         = @PACKAGE_NAME@
20 VERSION         = @PACKAGE_VERSION@
21
22 INSTALL         = @INSTALL@
23 MKDIR_P         = @MKDIR_P@
24 bindir          = @bindir@
25
26 OCAMLCPACKAGES  = -package extlib,pcre,unix,camlp4,bitstring.syntax -syntax bitstring.syntax
27
28 OCAMLCFLAGS     = @OCAMLCFLAGS@
29 OCAMLCLIBS      = -linkpkg camlp4lib.cma
30
31 OCAMLOPTFLAGS   = @OCAMLOPTFLAGS@
32 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
33 OCAMLOPTLIBS    = -linkpkg camlp4lib.cmxa
34
35 TARGETS         = kerneldb-to-parser.opt
36
37 OBJS            = kerneldb_to_parser.cmo
38 XOBJS           = $(OBJS:.cmo=.cmx)
39
40 all:    $(TARGETS)
41
42 kerneldb-to-parser.opt: $(XOBJS)
43         ocamlfind ocamlopt \
44           $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) $(XOBJS) -o $@
45
46 include ../../Make.rules