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