Imported Upstream version 2.0.26
[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 if HAVE_W32_SYSTEM
21 libexec_PROGRAMS = scdaemon
22 else
23 libexec_PROGRAMS = scdaemon gnupg-pcsc-wrapper
24 endif
25
26 EXTRA_DIST = ChangeLog-2011 scdaemon-w32info.rc
27
28 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
29
30 include $(top_srcdir)/am/cmacros.am
31
32 if HAVE_W32_SYSTEM
33 resource_objs += scdaemon-w32info.o
34 endif
35
36 AM_CFLAGS = $(GPG_ERROR_CFLAGS) $(LIBGCRYPT_CFLAGS) \
37             $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
38
39
40 card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c
41
42 scdaemon_SOURCES = \
43         scdaemon.c scdaemon.h \
44         command.c \
45         apdu.c apdu.h \
46         ccid-driver.c ccid-driver.h \
47         iso7816.c iso7816.h \
48         app.c app-common.h app-help.c $(card_apps)
49
50
51 scdaemon_LDADD = $(libcommonpth) ../jnlib/libjnlib.a ../gl/libgnu.a \
52         $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
53         $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
54         $(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV) $(resource_objs)
55
56 # Removed for now: We need to decide whether it makes sense to
57 # continue it at all, given that gpg has now all required
58 # functionality.
59 #sc_copykeys_SOURCES = \
60 #       sc-copykeys.c scdaemon.h \
61 #       apdu.c apdu.h \
62 #       ccid-driver.c ccid-driver.h \
63 #       iso7816.c iso7816.h \
64 #       atr.c atr.h \
65 #       app.c app-common.h app-help.c $(card_apps)
66 #
67 #sc_copykeys_LDADD = \
68 #       ../jnlib/libjnlib.a ../common/libcommon.a \
69 #       ../common/libsimple-pwquery.a \
70 #       $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
71 #        $(LIBUSB_LIBS) \
72 #        -lgpg-error @LIBINTL@ @DL_LIBS@
73 #
74 gnupg_pcsc_wrapper_SOURCES = pcsc-wrapper.c
75 gnupg_pcsc_wrapper_LDADD = $(DL_LIBS)
76 gnupg_pcsc_wrapper_CFLAGS =