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