1
2#
3# s3backer - FUSE-based single file backing store via Amazon S3
4#
5# Copyright 2008-2011 Archie L. Cobbs <archie@dellroad.org>
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License
9# as published by the Free Software Foundation; either version 2
10# of the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20# 02110-1301, USA.
21#
22# In addition, as a special exception, the copyright holders give
23# permission to link the code of portions of this program with the
24# OpenSSL library under certain conditions as described in each
25# individual source file, and distribute linked combinations including
26# the two.
27#
28# You must obey the GNU General Public License in all respects for all
29# of the code used other than OpenSSL. If you modify file(s) with this
30# exception, you may extend this exception to your version of the
31# file(s), but you are not obligated to do so. If you do not wish to do
32# so, delete this exception statement from your version. If you delete
33# this exception statement from all source files in the program, then
34# also delete it here.
35
36bin_PROGRAMS=       s3backer
37
38noinst_PROGRAMS=    tester
39
40noinst_HEADERS=     s3backer.h \
41			block_cache.h \
42			block_part.h \
43			dcache.h \
44			ec_protect.h \
45			erase.h \
46			fuse_ops.h \
47			hash.h \
48			http_io.h \
49			reset.h \
50			test_io.h \
51			s3b_config.h
52
53man_MANS=           s3backer.1
54
55docdir=             $(datadir)/doc/packages/$(PACKAGE)
56
57doc_DATA=           CHANGES COPYING README INSTALL TODO
58
59EXTRA_DIST=         CHANGES s3backer.1 s3backer.spec
60
61s3backer_SOURCES=   main.c \
62		    block_cache.c \
63		    block_part.c \
64		    dcache.c \
65		    ec_protect.c \
66		    erase.c \
67		    fuse_ops.c \
68		    hash.c \
69		    http_io.c \
70		    reset.c \
71		    s3b_config.c \
72		    test_io.c \
73		    sslcompat.c \
74		    gitrev.c
75
76tester_SOURCES=     tester.c \
77		    block_cache.c \
78		    block_part.c \
79		    dcache.c \
80		    ec_protect.c \
81		    erase.c \
82		    hash.c \
83		    http_io.c \
84		    reset.c \
85		    s3b_config.c \
86		    test_io.c \
87		    sslcompat.c \
88		    gitrev.c
89
90AM_CFLAGS=          $(FUSE_CFLAGS)
91
92gitrev.c:
93			printf 'const char *const s3backer_version = "%s";\n' "`git describe`" > gitrev.c
94
95