1# Makefile.am - PIN entry W32
2# Copyright (C) 2004 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
22logos = logo-32.bmp logo-48.bmp logo-64.bmp logo-96.bmp logo-128.bmp
23
24EXTRA_DIST = $(logos)
25
26bin_PROGRAMS = pinentry-w32
27
28AM_CPPFLAGS = $(COMMON_CFLAGS) -I$(top_srcdir)/secmem \
29	      -I$(top_srcdir)/pinentry
30
31
32pinentry_w32_SOURCES = main.c pinentry-w32.rc resource.h
33
34# Note: For testing you should add -mconsole to LDFLAGS.
35pinentry_w32_LDFLAGS = -mwindows
36pinentry_w32_LDADD = pinentry-w32.o \
37	../pinentry/libpinentry.a ../secmem/libsecmem.a \
38        $(COMMON_LIBS)
39
40pinentry-w32.o: pinentry-w32.rc resource.h $(logos)
41	$(WINDRES) -I.. -v -o $@ $<
42
43