2 # Copyright (C) 2009 Red Hat Inc.
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.
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.
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.
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.
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.
31 visualizer_NT_time.ml \
32 clearheaderfields.ml \
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 $@
43 fillemptyhbins.opt: fillemptyhbins.ml
44 ocamlfind ocamlopt -w y \
45 -package bitstring,bitstring.syntax,extlib \
46 -syntax camlp4 -linkpkg $^ -o $@
48 clearheaderfields.opt: visualizer_utils.ml clearheaderfields.ml
49 ocamlfind ocamlopt -w y \
50 -package bitstring,bitstring.syntax,extlib \
51 -syntax camlp4 -linkpkg $^ -o $@
53 truncatefile.opt: visualizer_utils.ml truncatefile.ml
54 ocamlfind ocamlopt -w y \
55 -package bitstring,bitstring.syntax,extlib \
56 -syntax camlp4 -linkpkg $^ -o $@