Tools for analyzing and reverse engineering hive files.
[libguestfs.git] / hivex / 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 SUBDIRS = tools
19
20 EXTRA_DIST = hivex.pod hivexml.pod hivexget.pod hivexsh.pod LICENSE
21
22 lib_LTLIBRARIES = libhivex.la
23
24 libhivex_la_SOURCES = \
25   hivex.c \
26   hivex.h \
27   byte_conversions.h
28
29 libhivex_la_LDFLAGS = -version-info 0:0:0
30 libhivex_la_CFLAGS = \
31   $(WARN_CFLAGS) $(WERROR_CFLAGS)
32
33 bin_PROGRAMS = hivexml hivexsh
34 bin_SCRIPTS = hivexget
35
36 hivexml_SOURCES = \
37   hivexml.c
38
39 hivexml_LDADD = libhivex.la $(LIBXML2_LIBS)
40 hivexml_CFLAGS = \
41   -I$(top_srcdir)/src \
42   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
43   $(LIBXML2_CFLAGS) \
44   $(WARN_CFLAGS) $(WERROR_CFLAGS)
45
46 hivexsh_SOURCES = \
47   hivexsh.c
48
49 hivexsh_LDADD = libhivex.la ../gnulib/lib/libgnu.la  $(LIBREADLINE)
50 hivexsh_CFLAGS = \
51   -I$(top_srcdir)/gnulib/lib \
52   -I$(top_srcdir)/src \
53   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
54   $(WARN_CFLAGS) $(WERROR_CFLAGS)
55
56 man_MANS = hivex.3 hivexml.1 hivexget.1 hivexsh.1
57
58 hivex.3: hivex.pod
59         $(POD2MAN) \
60           --section 3 \
61           -c "Windows Registry" \
62           --name "hivex" \
63           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
64           $< > $@-t; mv $@-t $@
65
66 hivexml.1: hivexml.pod
67         $(POD2MAN) \
68           --section 1 \
69           -c "Windows Registry" \
70           --name "hivexml" \
71           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
72           $< > $@-t; mv $@-t $@
73
74 hivexget.1: hivexget.pod
75         $(POD2MAN) \
76           --section 1 \
77           -c "Windows Registry" \
78           --name "hivexget" \
79           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
80           $< > $@-t; mv $@-t $@
81
82 hivexsh.1: hivexsh.pod
83         $(POD2MAN) \
84           --section 1 \
85           -c "Windows Registry" \
86           --name "hivexsh" \
87           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
88           $< > $@-t; mv $@-t $@
89
90 noinst_DATA = \
91         $(top_builddir)/html/hivex.3.html \
92         $(top_builddir)/html/hivexml.1.html \
93         $(top_builddir)/html/hivexget.1.html \
94         $(top_builddir)/html/hivexsh.1.html
95
96 $(top_builddir)/html/hivex.3.html: hivex.pod
97         mkdir -p $(top_builddir)/html
98         cd $(top_builddir) && pod2html \
99           --css 'pod.css' \
100           --htmldir html \
101           --outfile html/hivex.3.html \
102           hivex/hivex.pod
103
104 $(top_builddir)/html/hivexml.1.html: hivexml.pod
105         mkdir -p $(top_builddir)/html
106         cd $(top_builddir) && pod2html \
107           --css 'pod.css' \
108           --htmldir html \
109           --outfile html/hivexml.1.html \
110           hivex/hivexml.pod
111
112 $(top_builddir)/html/hivexget.1.html: hivexget.pod
113         mkdir -p $(top_builddir)/html
114         cd $(top_builddir) && pod2html \
115           --css 'pod.css' \
116           --htmldir html \
117           --outfile html/hivexget.1.html \
118           hivex/hivexget.pod
119
120 $(top_builddir)/html/hivexsh.1.html: hivexsh.pod
121         mkdir -p $(top_builddir)/html
122         cd $(top_builddir) && pod2html \
123           --css 'pod.css' \
124           --htmldir html \
125           --outfile html/hivexsh.1.html \
126           hivex/hivexsh.pod