2005-04-27 12:09:21 +00:00
|
|
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
2003-08-05 17:11:04 +00:00
|
|
|
#
|
|
|
|
# This file is part of GnuPG.
|
|
|
|
#
|
|
|
|
# GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-04 19:49:40 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-08-05 17:11:04 +00:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 17:11:04 +00:00
|
|
|
# GnuPG is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 17:11:04 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-07-04 19:49:40 +00:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2003-08-05 17:11:04 +00:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
bin_PROGRAMS = scdaemon
|
2004-12-15 14:15:54 +00:00
|
|
|
if ! HAVE_W32_SYSTEM
|
2006-11-21 11:00:14 +00:00
|
|
|
libexec_PROGRAMS = gnupg-pcsc-wrapper
|
2004-12-06 13:49:14 +00:00
|
|
|
endif
|
2003-08-05 17:11:04 +00:00
|
|
|
|
* configure.ac (gl_INIT): Add gnulib stuff.
(fseeko, ftello, ttyname, isascii): Replaced the AC_REPLACE_FUNCS
by a simple check.
(putc_unlocked): Removed check. Not used.
(strsep, mkdtemp, asprintf): Replaced checks by gnulib checks.
(xsize): Added will probably come handy soon.
(CFLAGS): Use -Wformat-security instead of
-Wformat-nonliteral. Add --Wno-format-y2k.
* gl/, gl/m4/: New.
* gpg-agent.c: Include setenv.h.
* Makefile.am (AM_CPPFLAGS): Added.
* util.h: Add some includes for gnulib.
(ttyname, isascii): Define them inline.
* fseeko.c, ftello.c: Removed.
* strsep.c, mkdtemp.c: Removed.
* ttyname.c, isascii.c: Removed.
* mkdtemp.c: Removed.
* exec.c: Include mkdtemp.h
* keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/ftello.c.
* keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/iobuf.c.
* scdaemon.c: Include mkdtemp.h.
* misc.c: Include setenv.h.
* symcryptrun.c: Include mkdtemp.h.
2005-06-01 15:46:01 +00:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
2004-02-12 09:29:14 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/am/cmacros.am
|
|
|
|
|
2005-04-27 12:09:21 +00:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) \
|
2011-09-29 03:14:37 +02:00
|
|
|
$(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS)
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2004-02-12 09:29:14 +00:00
|
|
|
|
2009-01-27 11:30:02 +00:00
|
|
|
card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c
|
2004-01-27 16:40:42 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
scdaemon_SOURCES = \
|
|
|
|
scdaemon.c scdaemon.h \
|
2005-04-27 12:09:21 +00:00
|
|
|
command.c \
|
2003-08-05 17:11:04 +00:00
|
|
|
apdu.c apdu.h \
|
2003-09-02 19:06:34 +00:00
|
|
|
ccid-driver.c ccid-driver.h \
|
2003-08-05 17:11:04 +00:00
|
|
|
iso7816.c iso7816.h \
|
2004-03-16 18:59:21 +00:00
|
|
|
app.c app-common.h app-help.c $(card_apps)
|
2004-01-27 16:40:42 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2010-03-10 12:24:58 +00:00
|
|
|
scdaemon_LDADD = $(libcommonpth) ../gl/libgnu.a \
|
2011-09-29 03:14:37 +02:00
|
|
|
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
|
2007-01-30 20:16:28 +00:00
|
|
|
$(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
|
|
|
|
$(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV)
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2005-05-23 20:18:13 +00:00
|
|
|
# Removed for now: We need to decide whether it makes sense to
|
|
|
|
# continue it at all, given that gpg has now all required
|
|
|
|
# functionality.
|
|
|
|
#sc_copykeys_SOURCES = \
|
|
|
|
# sc-copykeys.c scdaemon.h \
|
|
|
|
# apdu.c apdu.h \
|
|
|
|
# ccid-driver.c ccid-driver.h \
|
|
|
|
# iso7816.c iso7816.h \
|
|
|
|
# atr.c atr.h \
|
|
|
|
# app.c app-common.h app-help.c $(card_apps)
|
|
|
|
#
|
|
|
|
#sc_copykeys_LDADD = \
|
|
|
|
# ../jnlib/libjnlib.a ../common/libcommon.a \
|
|
|
|
# ../common/libsimple-pwquery.a \
|
2011-09-29 03:14:37 +02:00
|
|
|
# $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
|
2005-05-23 20:18:13 +00:00
|
|
|
# $(LIBUSB_LIBS) \
|
|
|
|
# -lgpg-error @LIBINTL@ @DL_LIBS@
|
|
|
|
#
|
2006-11-21 11:00:14 +00:00
|
|
|
gnupg_pcsc_wrapper_SOURCES = pcsc-wrapper.c
|
|
|
|
gnupg_pcsc_wrapper_LDADD = $(DL_LIBS)
|
2011-02-04 12:57:53 +01:00
|
|
|
gnupg_pcsc_wrapper_CFLAGS =
|