92c131f812504717000e6d5cfc96b43cb3facefc
[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 OCAMLCPACKAGES  = -package extlib,pcre,unix,camlp4,bitstring -pp camlp4of
28
29 OCAMLCFLAGS     = @OCAMLCFLAGS@
30 OCAMLCLIBS      = -linkpkg camlp4lib.cma
31
32 OCAMLOPTFLAGS   = @OCAMLOPTFLAGS@
33 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
34 OCAMLOPTLIBS    = -linkpkg camlp4lib.cmxa
35
36 TARGETS         = compile-kerneldb.opt
37
38 OBJS            = pahole_parser.cmo \
39                   minimizer.cmo \
40                   code_generation.cmo \
41                   compile_kerneldb.cmo
42 XOBJS           = $(OBJS:.cmo=.cmx)
43
44 all: byte opt
45
46 byte:
47
48 opt: $(TARGETS)
49
50 compile-kerneldb.opt: $(XOBJS)
51         ocamlfind ocamlopt \
52           $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) $(XOBJS) -o $@
53
54 install:
55
56 include ../../Make.rules