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