2003-08-05 19:11:04 +02:00
|
|
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# 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 21:49:40 +02:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-08-05 19:11:04 +02:00
|
|
|
# (at your option) any later version.
|
2011-02-04 12:57:53 +01:00
|
|
|
#
|
2003-08-05 19:11:04 +02: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 19:11:04 +02:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2023-05-24 12:06:37 +02:00
|
|
|
EXTRA_DIST = ChangeLog-2011 \
|
|
|
|
gpgsm-w32info.rc gpgsm.w32-manifest.in
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
bin_PROGRAMS = gpgsm
|
2020-04-27 16:53:30 +02:00
|
|
|
noinst_PROGRAMS = $(module_tests) $(module_maint_tests)
|
|
|
|
|
2020-08-20 10:54:17 +02:00
|
|
|
if DISABLE_TESTS
|
|
|
|
TESTS =
|
|
|
|
else
|
2020-04-27 16:53:30 +02:00
|
|
|
TESTS = $(module_tests)
|
2020-08-20 10:54:17 +02:00
|
|
|
endif
|
2003-08-05 19:11:04 +02:00
|
|
|
|
2020-09-03 13:46:54 +02:00
|
|
|
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) \
|
|
|
|
$(NPTH_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2004-02-12 10:29:42 +01:00
|
|
|
|
2017-03-07 12:21:23 +01:00
|
|
|
AM_CPPFLAGS = -DKEYBOX_WITH_X509=1
|
2004-02-12 10:29:42 +01:00
|
|
|
include $(top_srcdir)/am/cmacros.am
|
|
|
|
|
2013-04-25 13:00:16 +02:00
|
|
|
if HAVE_W32_SYSTEM
|
|
|
|
resource_objs += gpgsm-w32info.o
|
2023-05-24 12:06:37 +02:00
|
|
|
gpgsm-w32info.o : gpgsm.w32-manifest ../common/w32info-rc.h
|
2013-04-25 13:00:16 +02:00
|
|
|
endif
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
gpgsm_SOURCES = \
|
|
|
|
gpgsm.c gpgsm.h \
|
|
|
|
misc.c \
|
|
|
|
keydb.c keydb.h \
|
|
|
|
server.c \
|
|
|
|
call-agent.c \
|
|
|
|
call-dirmngr.c \
|
|
|
|
fingerprint.c \
|
|
|
|
certlist.c \
|
|
|
|
certdump.c \
|
|
|
|
certcheck.c \
|
|
|
|
certchain.c \
|
|
|
|
keylist.c \
|
|
|
|
verify.c \
|
|
|
|
sign.c \
|
|
|
|
encrypt.c \
|
|
|
|
decrypt.c \
|
|
|
|
import.c \
|
|
|
|
export.c \
|
|
|
|
delete.c \
|
2005-11-13 20:07:06 +01:00
|
|
|
certreqgen.c \
|
2007-06-21 20:44:48 +02:00
|
|
|
certreqgen-ui.c \
|
2010-06-17 17:44:44 +02:00
|
|
|
minip12.c minip12.h \
|
2016-03-07 18:09:41 +01:00
|
|
|
qualified.c \
|
|
|
|
passphrase.c passphrase.h
|
2003-08-05 19:11:04 +02:00
|
|
|
|
|
|
|
|
2020-09-03 13:46:54 +02:00
|
|
|
common_libs = ../kbx/libkeybox509.a $(libcommonpth)
|
2006-09-20 13:01:49 +02:00
|
|
|
|
2007-06-26 15:48:44 +02:00
|
|
|
gpgsm_LDADD = $(common_libs) ../common/libgpgrl.a \
|
2006-10-17 16:34:42 +02:00
|
|
|
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) \
|
2020-09-03 13:46:54 +02:00
|
|
|
$(NPTH_LIBS) $(GPG_ERROR_LIBS) $(LIBREADLINE) $(LIBINTL) \
|
2022-12-09 06:02:07 +01:00
|
|
|
$(LIBICONV) $(resource_objs) $(NETLIBS)
|
|
|
|
gpgsm_LDFLAGS =
|
2023-05-24 12:06:37 +02:00
|
|
|
gpgsm_DEPENDENCIES = $(resource_objs)
|
2004-09-30 16:34:34 +02:00
|
|
|
|
2020-04-27 16:53:30 +02:00
|
|
|
|
2023-06-28 17:33:24 +02:00
|
|
|
module_tests = t-minip12
|
|
|
|
module_maint_tests =
|
2020-04-27 16:53:30 +02:00
|
|
|
|
|
|
|
t_common_src =
|
|
|
|
t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) $(KSBA_LIBS) \
|
2021-04-19 20:17:39 +02:00
|
|
|
$(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
|
2020-04-27 16:53:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
t_minip12_CFLAGS = -DWITHOUT_NPTH=1 \
|
2021-09-08 15:18:38 +02:00
|
|
|
$(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) $(GPG_ERROR_CFLAGS)
|
2020-04-27 16:53:30 +02:00
|
|
|
t_minip12_SOURCES = $(t_common_src) t-minip12.c minip12.c
|
2020-07-30 08:01:55 +02:00
|
|
|
t_minip12_LDADD = $(t_common_ldadd) $(NETLIBS)
|
2020-04-27 16:53:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-20 13:01:49 +02:00
|
|
|
# Make sure that all libs are build before we use them. This is
|
|
|
|
# important for things like make -j2.
|
|
|
|
$(PROGRAMS): $(common_libs)
|