g13: Second chunk of code to support dm-crypt.
[gnupg.git] / g13 / Makefile.am
1 # g13/Makefile.am
2 # Copyright (C) 2009 Free Software Foundation, Inc.
3 #
4 # This file is part of GnuPG.
5 #
6 # GnuPG is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # GnuPG is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 EXTRA_DIST = ChangeLog-2011
22
23 bin_PROGRAMS = g13
24 sbin_PROGRAMS = g13-syshelp
25
26 noinst_PROGRAMS = $(module_tests)
27 TESTS = $(module_tests)
28
29 AM_CPPFLAGS = -I$(top_srcdir)/common
30
31 include $(top_srcdir)/am/cmacros.am
32
33 AM_CFLAGS =  $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS)
34
35 g13_SOURCES = \
36         g13.c g13.h \
37         g13-common.c g13-common.h \
38         keyblob.h \
39         g13tuple.c g13tuple.h \
40         server.c server.h \
41         create.c create.h \
42         mount.c mount.h \
43         mountinfo.c mountinfo.h \
44         call-syshelp.c call-syshelp.h \
45         runner.c runner.h \
46         backend.c backend.h \
47         be-encfs.c be-encfs.h \
48         be-truecrypt.c be-truecrypt.h \
49         be-dmcrypt.c be-dmcrypt.h
50
51 g13_LDADD = $(libcommonpth) \
52         $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
53         $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
54
55
56 g13_syshelp_SOURCES = \
57         g13-syshelp.c g13-syshelp.h \
58         g13-common.c g13-common.h \
59         keyblob.h \
60         g13tuple.c g13tuple.h \
61         sh-cmd.c \
62         sh-blockdev.c \
63         sh-dmcrypt.c
64
65 g13_syshelp_LDADD = $(libcommon) \
66         $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) \
67         $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
68
69
70 module_tests = t-g13tuple
71 t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) \
72                  $(LIBASSUAN_LIBS)
73
74 t_g13tuple_SOURCES = t-g13tuple.c g13tuple.c
75 t_g13tuple_LDADD = $(t_common_ldadd)
76
77
78 $(PROGRAMS) : $(libcommon) $(libcommonpth)