1# Pinentry support library Makefile 2# Copyright (C) 2002, 2015 g10 Code GmbH 3# 4# This file is part of PINENTRY. 5# 6# PINENTRY is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or 9# (at your option) any later version. 10# 11# PINENTRY is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, see <https://www.gnu.org/licenses/>. 18# SPDX-License-Identifier: GPL-2.0+ 19 20## Process this file with automake to produce Makefile.in 21 22EXTRA_DIST = 23 24if BUILD_LIBPINENTRY_CURSES 25pinentry_curses = libpinentry-curses.a 26else 27pinentry_curses = 28endif 29 30if BUILD_LIBPINENTRY_EMACS 31pinentry_emacs_sources = pinentry-emacs.h pinentry-emacs.c 32else 33pinentry_emacs_sources = 34endif 35 36noinst_LIBRARIES = libpinentry.a $(pinentry_curses) 37 38LDADD = $(COMMON_LIBS) 39AM_CPPFLAGS = $(COMMON_CFLAGS) -I$(top_srcdir)/secmem 40 41libpinentry_a_SOURCES = pinentry.h pinentry.c argparse.c argparse.h \ 42 password-cache.h password-cache.c $(pinentry_emacs_sources) 43libpinentry_curses_a_SOURCES = pinentry-curses.h pinentry-curses.c 44libpinentry_curses_a_CFLAGS = @NCURSES_CFLAGS@ 45