1 |
# Makefile.am - makefile for WinPT |
2 |
# Copyright (C) 2005 g10 Code GmbH |
3 |
# |
4 |
# This file is free software; as a special exception the author gives |
5 |
# unlimited permission to copy and/or distribute it, with or without |
6 |
# modifications, as long as this notice is preserved. |
7 |
# |
8 |
# This program is distributed in the hope that it will be useful, but |
9 |
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
10 |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
11 |
|
12 |
## Process this file with automake to produce Makefile.in |
13 |
|
14 |
bin_PROGRAMS = PTD |
15 |
EXTRA_DIST = versioninfo.rc.in |
16 |
EXEEXT = .dll |
17 |
|
18 |
AM_CPPFLAGS = -I$(top_srcdir)/w32gpgme -I$(top_srcdir)/Include \ |
19 |
-I$(top_srcdir)/Gnupg \ |
20 |
-DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL -DPTD_EXPORTS |
21 |
#AM_CFLAGS = -fexceptions $(GPGME_CFLAGS) -shared |
22 |
AM_CXXFLAGS = -fstack-protector-all -fexceptions $(GPGME_CFLAGS) -shared |
23 |
AM_LDFLAGS = -mwindows |
24 |
|
25 |
PTD_SOURCES = \ |
26 |
PTD.def \ |
27 |
resource.rc \ |
28 |
PTD.cpp |
29 |
|
30 |
|
31 |
PTD_LDADD = $(srcdir)/PTD.def -L../Gnupg -lgnupg $(W32LIBS) |
32 |
|
33 |
resource.o: resource.rc versioninfo.rc |
34 |
|
35 |
.rc.o: |
36 |
$(WINDRES) -I $(srcdir) -I . `test -f '$<' || echo '$(srcdir)/'`$< $@ |