1#
2# Copyright (c) 2005-2008 Alon Bar-Lev <alon.barlev@gmail.com>
3# All rights reserved.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License version 2
7# as published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program (see the file COPYING.GPL included with this
16# distribution); if not, write to the Free Software Foundation, Inc.,
17# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18#
19
20AUTOMAKE_OPTIONS=foreign dist-bzip2 1.10
21ACLOCAL_AMFLAGS=-I m4
22
23MAINTAINERCLEANFILES = \
24	config.log config.status \
25	$(srcdir)/Makefile.in \
26	$(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
27	$(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
28	$(srcdir)/depcomp $(srcdir)/aclocal.m4 \
29	$(srcdir)/config.guess $(srcdir)/config.sub
30CLEANFILES=pkcs11-dump.1.html
31
32bin_PROGRAMS=pkcs11-dump
33dist_doc_DATA=README COPYING COPYING.GPL
34
35pkcs11_dump_SOURCES= \
36	pkcs11.h \
37	pkcs11-dump.cpp
38if WIN32
39nodist_pkcs11_dump_SOURCES=versioninfo.rc
40endif
41
42if WIN32
43nodist_html_DATA=pkcs11-dump.1.html
44dist_noinst_DATA=pkcs11-dump.1
45pkcs11-dump.1.html:	pkcs11-dump.1
46	$(MAN2HTML) < "$^" > "$@"
47else
48dist_man_MANS=pkcs11-dump.1
49endif
50
51RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
52	$(AM_CPPFLAGS) $(CPPFLAGS)
53LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)
54
55.rc.lo:
56	$(LTRCCOMPILE) -i $< -o $@
57
58.rc.o:
59	$(RCCOMPILE) -i $< -o $@
60
61