1# Makefile.am
2# Copyright (C) 2002 g10 Code GmbH, Klarälvdalens Datakonsult AB
3# Copyright (C) 2008, 2015 g10 Code GmbH
4#
5# This file is part of PINENTRY.
6#
7# PINENTRY is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# PINENTRY is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, see <https://www.gnu.org/licenses/>.
19# SPDX-License-Identifier: GPL-2.0+
20
21## Process this file with automake to produce Makefile.in
22
23bin_PROGRAMS = pinentry-tqt
24
25
26if FALLBACK_CURSES
27ncurses_include = $(NCURSES_INCLUDE)
28libcurses = ../pinentry/libpinentry-curses.a $(LIBCURSES) $(LIBICONV)
29else
30ncurses_include =
31libcurses =
32endif
33
34
35AM_CPPFLAGS = $(COMMON_CFLAGS) \
36	-I$(top_srcdir) -I$(top_srcdir)/secmem \
37	$(ncurses_include) -I$(top_srcdir)/pinentry
38AM_CXXFLAGS = $(PINENTRY_TQT_CFLAGS)
39pinentry_tqt_LDADD = \
40	../pinentry/libpinentry.a $(top_builddir)/secmem/libsecmem.a \
41	$(COMMON_LIBS) $(PINENTRY_TQT_LIBS) $(libcurses) $(LIBCAP)
42
43if BUILD_PINENTRY_TQT
44BUILT_SOURCES = \
45	secqlineedit.moc pinentrydialog.moc
46endif
47
48CLEANFILES = \
49	secqlineedit.moc pinentrydialog.moc
50
51pinentry_tqt_SOURCES = pinentrydialog.h pinentrydialog.cpp \
52	main.cpp secqinternal_p.h secqinternal.cpp \
53	secqlineedit.h secqlineedit.cpp \
54	secqstring.h secqstring.cpp
55
56nodist_pinentry_tqt_SOURCES = \
57	secqlineedit.moc pinentrydialog.moc
58
59.h.moc:
60	$(TQT_MOC) `test -f '$<' || echo '$(srcdir)/'`$< -o $@
61