Win::Hivex::Regedit module for importing and exporting regedit format files.
[hivex.git] / lib / Makefile.am
1 # hivex
2 # Copyright (C) 2009-2010 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 = \
21         hivex.pod
22
23 lib_LTLIBRARIES = libhivex.la
24
25 libhivex_la_SOURCES = \
26   hivex.c \
27   hivex.h \
28   byte_conversions.h \
29   gettext.h
30
31 libhivex_la_LIBADD =  ../gnulib/lib/libgnu.la
32 libhivex_la_LDFLAGS = -version-info 0:0:0 $(LTLIBINTL) $(LTLIBTHREAD)
33 libhivex_la_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
34 libhivex_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib
35
36 include_HEADERS = hivex.h
37
38 man_MANS = hivex.3
39
40 hivex.3: hivex.pod
41         $(POD2MAN) \
42           --section 3 \
43           -c "Windows Registry" \
44           --name "hivex" \
45           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
46           $< > $@-t; mv $@-t $@
47
48 noinst_DATA = \
49         $(top_builddir)/html/hivex.3.html
50
51 $(top_builddir)/html/hivex.3.html: hivex.pod
52         mkdir -p $(top_builddir)/html
53         cd $(top_builddir) && pod2html \
54           --css 'pod.css' \
55           --htmldir html \
56           --outfile html/hivex.3.html \
57           lib/hivex.pod