hivex: Added gnulib includes from builddir, as suggested by the Gnulib documentation...
[hivex.git] / lib / Makefile.am
1 # hivex
2 # Copyright (C) 2009-2011 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         hivex.syms
23
24 lib_LTLIBRARIES = libhivex.la
25
26 libhivex_la_SOURCES = \
27   hivex.c \
28   hivex.h \
29   hivex-internal.h \
30   byte_conversions.h \
31   gettext.h \
32   mmap.h \
33   hivex.syms
34
35 libhivex_la_LIBADD =  ../gnulib/lib/libgnu.la $(LTLIBOBJS)
36 libhivex_la_LDFLAGS = \
37         -version-info 0:0:0 \
38         $(VERSION_SCRIPT_FLAGS)$(srcdir)/hivex.syms \
39         $(LTLIBINTL) \
40         $(LTLIBTHREAD)
41 libhivex_la_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
42 libhivex_la_CPPFLAGS = \
43   -I$(top_srcdir)/gnulib/lib \
44   -I$(top_builddir)/gnulib/lib \
45   -I$(srcdir)
46
47 include_HEADERS = hivex.h
48
49 man_MANS = hivex.3
50
51 hivex.3: hivex.pod
52         $(POD2MAN) \
53           --section 3 \
54           -c "Windows Registry" \
55           --name "hivex" \
56           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
57           $< > $@-t; mv $@-t $@
58
59 noinst_DATA = \
60         $(top_builddir)/html/hivex.3.html
61
62 $(top_builddir)/html/hivex.3.html: hivex.pod
63         mkdir -p $(top_builddir)/html
64         pod2html \
65           --css pod.css \
66           --htmldir $(top_builddir)/html \
67           --outfile $(top_builddir)/html/hivex.3.html \
68           $<
69
70 CLEANFILES = $(man_MANS)
71
72 # Tests.
73
74 check_PROGRAMS = test-just-header
75
76 TESTS = test-just-header
77
78 test_just_header_SOURCES = test-just-header.c
79 test_just_header_CFLAGS = \
80         -I$(top_srcdir)/lib -I$(top_builddir)/lib \
81         $(WARN_CFLAGS) $(WERROR_CFLAGS)
82 test_just_header_LDADD = \
83         $(top_builddir)/lib/libhivex.la