Imported Upstream version 2.2.22
[platform/upstream/gpg2.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 <https://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 EXTRA_DIST = ChangeLog-2011 all-tests.scm
22
23 bin_PROGRAMS = g13
24 sbin_PROGRAMS = g13-syshelp
25
26 noinst_PROGRAMS = $(module_tests)
27 if DISABLE_TESTS
28 TESTS =
29 else
30 TESTS = $(module_tests)
31 endif
32
33 AM_CPPFLAGS =
34
35 include $(top_srcdir)/am/cmacros.am
36
37 AM_CFLAGS =  $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS)
38
39 g13_SOURCES = \
40         g13.c g13.h \
41         g13-common.c g13-common.h \
42         keyblob.c keyblob.h \
43         g13tuple.c g13tuple.h \
44         server.c server.h \
45         create.c create.h \
46         mount.c mount.h \
47         suspend.c suspend.h \
48         mountinfo.c mountinfo.h \
49         call-syshelp.c call-syshelp.h \
50         runner.c runner.h \
51         backend.c backend.h \
52         be-encfs.c be-encfs.h \
53         be-truecrypt.c be-truecrypt.h \
54         be-dmcrypt.c be-dmcrypt.h
55
56 g13_LDADD = $(libcommonpth) \
57         $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
58         $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
59
60
61 g13_syshelp_SOURCES = \
62         g13-syshelp.c g13-syshelp.h \
63         g13-common.c g13-common.h \
64         keyblob.c keyblob.h \
65         g13tuple.c g13tuple.h \
66         sh-cmd.c \
67         sh-blockdev.c \
68         sh-dmcrypt.c
69
70 g13_syshelp_LDADD = $(libcommon) \
71         $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) \
72         $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
73
74
75 module_tests = t-g13tuple
76 t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) \
77                  $(LIBASSUAN_LIBS) $(LIBICONV)
78
79 t_g13tuple_SOURCES = t-g13tuple.c g13tuple.c
80 t_g13tuple_LDADD = $(t_common_ldadd)
81
82
83 $(PROGRAMS) : $(libcommon) $(libcommonpth)