bd8e9861883be236892a646226f66b146366603c
[libguestfs.git] / hivex / tools / Makefile.am
1 # libguestfs
2 # Copyright (C) 2009 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program 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.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 # OCaml Windows Registry visualizer.  This was used while reverse
19 # engineering the hive format, and is not normally compiled.  If you
20 # do with to compile it, you'll need ocaml-bitstring-devel and
21 # ocaml-extlib-devel.  Also you'll need a collection of hive files
22 # from Windows machines to experiment with.
23 #
24 # We use '-w y' (disable unused variable warnings) because these
25 # warnings aren't very reliable with heavily preprocessed code like
26 # that produced by bitstring.
27
28 EXTRA_DIST = \
29         visualizer.ml \
30         visualizer_utils.ml \
31         visualizer_NT_time.ml \
32         clearheaderfields.ml \
33         fillemptyhbins.ml \
34         truncatefile.ml \
35         counter.mli \
36         counter.ml
37
38 visualizer.opt: counter.mli counter.ml visualizer_utils.ml visualizer_NT_time.ml visualizer.ml
39         ocamlfind ocamlopt -w y \
40           -package bitstring,bitstring.syntax,extlib \
41           -syntax camlp4 -linkpkg $^ -o $@
42
43 fillemptyhbins.opt: fillemptyhbins.ml
44         ocamlfind ocamlopt -w y \
45           -package bitstring,bitstring.syntax,extlib \
46           -syntax camlp4 -linkpkg $^ -o $@
47
48 clearheaderfields.opt: visualizer_utils.ml clearheaderfields.ml
49         ocamlfind ocamlopt -w y \
50           -package bitstring,bitstring.syntax,extlib \
51           -syntax camlp4 -linkpkg $^ -o $@
52
53 truncatefile.opt: visualizer_utils.ml truncatefile.ml
54         ocamlfind ocamlopt -w y \
55           -package bitstring,bitstring.syntax,extlib \
56           -syntax camlp4 -linkpkg $^ -o $@