Disable stack execution on plugins
[claws.git] / src / plugins / pgpcore / Makefile.am
blob57933ee02013c36a2f76f0bcf2922fd4d367a4fc
1 # Copyright 1999-2022 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
6 include $(srcdir)/../win_plugin.mk
8 IFLAGS = \
9         -I$(top_builddir)/src \
10         -I$(top_builddir)/src/common \
11         -I$(top_srcdir)/src \
12         -I$(top_srcdir)/src/common \
13         -I$(top_srcdir)/src/gtk
15 plugindir = $(pkglibdir)/plugins
17 if BUILD_PGPCORE_PLUGIN
18 plugin_LTLIBRARIES = pgpcore.la
19 endif
21 pgpcore_la_LDFLAGS = \
22         $(plugin_ldflags) \
23         -avoid-version -module -z noexecstack
25 EXTRA_pgpcore_la_DEPENDENCIES = $(plugin_extra_deps)
27 pgpcore_la_LIBADD = $(plugin_libadd) \
28         $(GTK_LIBS) \
29         $(GPGME_LIBS) \
30         $(LIBGPG_ERROR_LIBS) \
31         $(ENCHANT_LIBS)
33 pgpcore_la_CPPFLAGS = \
34         $(IFLAGS) \
35         $(GLIB_CFLAGS) \
36         $(GTK_CFLAGS) \
37         $(GPGME_CFLAGS) \
38         $(ENCHANT_CFLAGS) \
39         -Wno-deprecated-declarations
41 pgpcore_la_SOURCES = \
42         autocompletion.c \
43         autocompletion.h \
44         passphrase.c \
45         passphrase.h \
46         pgp_utils.c \
47         pgp_utils.h \
48         pgp_viewer.c \
49         pgp_viewer.h \
50         plugin.c \
51         prefs_gpg.c \
52         prefs_gpg.h \
53         select-keys.c \
54         select-keys.h \
55         sgpgme.c \
56         sgpgme.h
58 pluginincludedir = $(pkgincludedir)/plugins/pgpcore
59 plugininclude_HEADERS = \
60         passphrase.h \
61         pgp_utils.h \
62         prefs_gpg.h \
63         sgpgme.h