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