Imported Upstream version 2.0.19
[platform/upstream/gpg2.git] / scd / Makefile.am
1 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17
18 ## Process this file with automake to produce Makefile.in
19
20 bin_PROGRAMS = scdaemon
21 if ! HAVE_W32_SYSTEM
22 libexec_PROGRAMS = gnupg-pcsc-wrapper
23 endif
24
25 EXTRA_DIST = ChangeLog-2011
26
27 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
28
29 include $(top_srcdir)/am/cmacros.am
30
31 AM_CFLAGS =  $(LIBGCRYPT_CFLAGS) \
32              $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
33
34
35 card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c
36
37 scdaemon_SOURCES = \
38         scdaemon.c scdaemon.h \
39         command.c \
40         apdu.c apdu.h \
41         ccid-driver.c ccid-driver.h \
42         iso7816.c iso7816.h \
43         app.c app-common.h app-help.c $(card_apps)
44
45
46 scdaemon_LDADD = $(libcommonpth) ../jnlib/libjnlib.a ../gl/libgnu.a \
47         $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
48         $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
49         $(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV)
50
51 # Removed for now: We need to decide whether it makes sense to
52 # continue it at all, given that gpg has now all required
53 # functionality.
54 #sc_copykeys_SOURCES = \
55 #       sc-copykeys.c scdaemon.h \
56 #       apdu.c apdu.h \
57 #       ccid-driver.c ccid-driver.h \
58 #       iso7816.c iso7816.h \
59 #       atr.c atr.h \
60 #       app.c app-common.h app-help.c $(card_apps)
61 #
62 #sc_copykeys_LDADD = \
63 #       ../jnlib/libjnlib.a ../common/libcommon.a \
64 #       ../common/libsimple-pwquery.a \
65 #       $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
66 #        $(LIBUSB_LIBS) \
67 #        -lgpg-error @LIBINTL@ @DL_LIBS@
68 #
69 gnupg_pcsc_wrapper_SOURCES = pcsc-wrapper.c
70 gnupg_pcsc_wrapper_LDADD = $(DL_LIBS)
71 gnupg_pcsc_wrapper_CFLAGS =