Add a final section to make sure that the outpath is set properly.
[gpg4win.git] / src / Makefile.am
1 # Makefile.am - Installer for GnuPG 4 Windows Makefile.
2 # Copyright (C) 2005, 2006, 2007 g10 Code GmbH
3
4 # This file is part of Gpg4win.
5
6 # Gpg4win 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 # Gpg4win 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, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20
21 EXTRA_DIST = pkg-config gpg4win.nsi gpg4win-src.nsi config.site \
22         installer-options.ini.in libiconv.def libintl.def loreley.mid \
23         gpg4win-splash.wav gpgwrap.c exdll.h g4wihelp.c g4wihelp.nsi \
24         inst-sections.nsi installer.nsi installer-finish.nsi  \
25         qt.conf kleopatra.bat                                 \
26         inst-gpg4win.nsi           uninst-gpg4win.nsi         \
27         inst-atk.nsi               uninst-atk.nsi             \
28         inst-cairo.nsi             uninst-cairo.nsi           \
29         inst-libetpan.nsi          uninst-libetpan.nsi        \
30         inst-claws-mail.nsi        uninst-claws-mail.nsi      \
31         inst-crypt.nsi             uninst-crypt.nsi           \
32         inst-dirmngr.nsi           uninst-dirmngr.nsi         \
33         inst-eudoragpg.nsi         uninst-eudoragpg.nsi       \
34         inst-gettext.nsi           uninst-gettext.nsi         \
35         inst-glib.nsi              uninst-glib.nsi            \
36         inst-gnupg2.nsi            uninst-gnupg2.nsi          \
37         inst-gnupg.nsi             uninst-gnupg.nsi           \
38         inst-gpa.nsi               uninst-gpa.nsi             \
39         inst-gpgee.nsi             uninst-gpgee.nsi           \
40         inst-gpgme.nsi             uninst-gpgme.nsi           \
41         inst-gpgol.nsi             uninst-gpgol.nsi           \
42         inst-gpgex.nsi             uninst-gpgex.nsi           \
43         inst-gtk+.nsi              uninst-gtk+.nsi            \
44         inst-jpeg.nsi              uninst-jpeg.nsi            \
45         inst-libassuan.nsi         uninst-libassuan.nsi       \
46         inst-libgcrypt.nsi         uninst-libgcrypt.nsi       \
47         inst-libgpg-error.nsi      uninst-libgpg-error.nsi    \
48         inst-libiconv.nsi          uninst-libiconv.nsi        \
49         inst-libksba.nsi           uninst-libksba.nsi         \
50         inst-libpng.nsi            uninst-libpng.nsi          \
51         inst-man_advanced_de.nsi   uninst-man_advanced_de.nsi \
52         inst-man_advanced_en.nsi   uninst-man_advanced_en.nsi \
53         inst-man_novice_de.nsi     uninst-man_novice_de.nsi   \
54         inst-man_novice_en.nsi     uninst-man_novice_en.nsi   \
55         inst-pango.nsi             uninst-pango.nsi           \
56         inst-pinentry.nsi          uninst-pinentry.nsi        \
57         inst-pkgconfig.nsi         uninst-pkgconfig.nsi       \
58         inst-pthreads-w32.nsi      uninst-pthreads-w32.nsi    \
59         inst-regex.nsi             uninst-regex.nsi           \
60         inst-sylpheed-claws.nsi    uninst-sylpheed-claws.nsi  \
61         inst-w32pth.nsi            uninst-w32pth.nsi          \
62         inst-winpt.nsi             uninst-winpt.nsi           \
63         inst-zlib.nsi              uninst-zlib.nsi            \
64         inst-qt.nsi                uninst-qt.nsi              \
65         inst-kdesupport.nsi        uninst-kdesupport.nsi      \
66         inst-oxygen-icons.nsi      uninst-oxygen-icons.nsi    \
67         inst-kdelibs.nsi           uninst-kdelibs.nsi         \
68         inst-kleopatra.nsi         uninst-kleopatra.nsi       \
69         inst-bzip2.nsi             uninst-bzip2.nsi           \
70         inst-final.nsi
71
72 # Need to clean the dll because we bypassed automake.
73 CLEANFILES = g4wihelp.dll versioninfo.txt README.en.txt README.de.txt \
74              installer-options.ini NEWS.tmp gpgwrap.exe
75
76 # Supported source packages.
77 gpg4win_spkgs = glib gnupg libgpg-error gpgme gpgol gpgex \
78                 gpa winpt sylpheed-claws libetpan \
79                 claws-mail gnupg2 pinentry libassuan libksba \
80                 libgcrypt dirmngr w32pth
81
82 # Extra options to configure for individual packages.
83 # We can use $(idir) here for the installation prefix.
84
85 gpg4win_pkg_glib_configure = \
86   --with-lib-prefix=$(idir) --with-libiconv-prefix=$(idir) \
87   CPPFLAGS=-I$(idir)/include LDFLAGS=-L$(idir)/lib
88
89 # The GnuPG package provides man pages which we have to convert.
90 # We also create the MO files here.
91 define gpg4win_pkg_gnupg_post_install   
92 (man -Tlatin1 -l $$$${pkgidir}/share/man/man1/gpg.1 | \
93  sed `printf "s/_\b//g;s/\b.//g"` | \
94  sed -e 's/$$$$/\r/' > $$$${pkgidir}/share/man/man1/gpg.man; \
95 man -Tlatin1 -l $$$${pkgidir}/share/man/man1/gpgv.1 | \
96  sed `printf "s/_\b//g;s/\b.//g"` | \
97  sed -e 's/$$$$/\r/' > $$$${pkgidir}/share/man/man1/gpgv.man; \
98 man -Tlatin1 -l $$$${pkgidir}/share/man/man7/gnupg.7 | \
99  sed `printf "s/_\b//g;s/\b.//g"` | \
100  sed -e 's/$$$$/\r/' > $$$${pkgidir}/share/man/man7/gnupg.man; \
101 for i in de; do \
102  msgfmt --output-file=$$$${pkgidir}/share/gnupg/$$$${i}.mo \
103                                $$$${pkgsdir}/po/$$$${i}.po; \
104  done)
105 endef
106
107
108 # The fields FAQ and faq.html conflict with those in GnuPG1.
109 # For now removes them.
110 define gpg4win_pkg_gnupg2_post_install  
111 ( rm $$$${pkgidir}/share/gnupg/FAQ; \
112   rm $$$${pkgidir}/share/gnupg/faq.html )
113 endef
114
115
116 # Build the reference manual.
117 define gpg4win_pkg_gpgol_post_install
118 ( cd $$$${pkgndir}/doc; make pdf )
119 endef
120
121 # We would like to use --with-libiconv-prefix and
122 # --with-libintl-prefix, but these don't work with the cheesy
123 # non-"libfoo.la" versions of iconv and gettext that we are using.
124 #gpg4win_pkg_libgpg_error_configure = \
125 #  --with-libiconv-prefix=$(idir) --with-libintl-prefix=$(idir)
126 gpg4win_pkg_libgpg_error_configure = --silent \
127   CPPFLAGS=-I$(idir)/include LDFLAGS=-L$(idir)/lib
128
129 gpg4win_pkg_libassuan_configure =  --silent \
130   --disable-shared \
131   --with-pth-prefix=$(idir)
132
133 gpg4win_pkg_libksba_configure = --silent \
134   --with-gpg-error-prefix=$(idir)
135
136 gpg4win_pkg_libgcrypt_configure = --silent \
137   --with-gpg-error-prefix=$(idir)
138
139 gpg4win_pkg_dirmngr_configure = \
140   --with-gpg-error-prefix=$(idir) \
141   --with-ksba-prefix=$(idir) \
142   --with-libgcrypt-prefix=$(idir) \
143   --with-libassuan-prefix=$(idir) \
144   --with-pth-prefix=$(idir)
145
146 gpg4win_pkg_gnupg_configure = \
147   --with-bzip2=$(idir) 
148
149 gpg4win_pkg_gnupg2_configure = \
150   --with-gpg-error-prefix=$(idir) \
151   --with-ksba-prefix=$(idir) \
152   --with-libgcrypt-prefix=$(idir) \
153   --with-libassuan-prefix=$(idir) \
154   --with-zlib=$(idir) \
155   --with-pth-prefix=$(idir) \
156   --without-included-gettext \
157   --disable-regex
158
159 # We would like to use --with-libiconv-prefix and
160 # --with-libintl-prefix, but these don't work with the cheesy
161 # non-"libfoo.la" versions of iconv and gettext that we are using.
162 gpg4win_pkg_pinentry_configure = \
163   --disable-pinentry-gtk \
164   --enable-pinentry-gtk2 \
165   --with-glib-prefix=$(idir) --with-gtk-prefix=$(idir) \
166   --disable-pinentry-qt \
167   CPPFLAGS=-I$(idir)/include LDFLAGS=-L$(idir)/lib
168 #  --with-libiconv-prefix=$(idir) --with-libintl-prefix=$(idir)
169
170 # The LDFLAGS is needed for -lintl for glib.  The QT4 variables work
171 # around the lack of cross compilation support in qt-dev.
172 gpg4win_pkg_gpgme_configure = --silent \
173   --with-gpg-error-prefix=$(idir) --enable-static \
174   --enable-w32-glib LDFLAGS=-L$(idir)/lib \
175   --enable-w32-qt \
176   QT4_CORE_CFLAGS=\"-DQT_LARGEFILE_SUPPORT -DQT_DLL \
177                    -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_THREAD_SUPPORT \
178                    -I$(idir)/include/QtCore -I$(idir)/include \
179                    -I$(idir)/mkspecs/win32-g++\" \
180   QT4_CORE_LIBS=\"-L$(idir)/lib -lQtCore4\"
181
182 gpg4win_pkg_gpa_configure = --silent \
183   --with-libiconv-prefix=$(idir) --with-libintl-prefix=$(idir) \
184   --with-gpgme-prefix=$(idir) --with-zlib=$(idir) \
185   --with-libassuan-prefix=$(idir) --with-gpg-error-prefix=$(idir)
186
187 gpg4win_pkg_gpgol_configure = --silent \
188   --with-gpgme-prefix=$(idir) --with-gpg-error-prefix=$(idir) \
189   --with-libassuan-prefix=$(idir)
190
191 gpg4win_pkg_gpgex_configure = --silent \
192   --with-gpg-error-prefix=$(idir) \
193   --with-libassuan-prefix=$(idir)
194
195 gpg4win_pkg_winpt_configure = --silent \
196   --with-gpgme-prefix=$(idir) --with-gpg-error-prefix=$(idir)
197
198 gpg4win_pkg_sylpheed_claws_configure = --silent \
199   --with-lib-prefix=$(idir) --with-libiconv-prefix=$(idir) \
200   --with-gpg-error-prefix=$(idir) --with-gpgme-prefix=$(idir) \
201   --with-config-dir="Sylpheed-claws" --disable-pthread \
202   --disable-libetpan --disable-aspell --disable-trayicon-plugin \
203   --disable-openssl --disable-dillo-viewer-plugin --disable-gnomeprint \
204   --disable-jpilot --disable-startup-notification --disable-ipv6 \
205   --disable-mathml-viewer-plugin --disable-clamav-plugin \
206   --disable-spamassassin-plugin
207
208 # The CFLAGS are needed to find pthread-w32.
209 gpg4win_pkg_libetpan_configure = \
210   CPPFLAGS=\"-I$(idir)/include\" LIBS=\"-L$(idir)/lib\"
211
212 gpg4win_pkg_claws_mail_configure = \
213   --with-lib-prefix=$(idir) --with-libiconv-prefix=$(idir) \
214   --with-gpg-error-prefix=$(idir) --with-gpgme-prefix=$(idir) \
215   --with-config-dir="Claws-mail" --disable-pthread \
216   --enable-libetpan --disable-aspell --disable-trayicon-plugin \
217   --disable-openssl --disable-dillo-viewer-plugin --disable-gnomeprint \
218   --disable-jpilot --disable-startup-notification --disable-ipv6 \
219   --disable-mathml-viewer-plugin --disable-clamav-plugin \
220   --disable-spamassassin-plugin --disable-bogofilter-plugin \
221   --disable-valgrind
222
223 # Supported make-only source packages.
224 gpg4win_mpkgs = pthreads-w32 bzip2
225
226 # Extra options for the make invocations for individual packages.
227 # make_flags is used fur building, make_args_inst is used for installing.
228 gpg4win_pkg_pthreads_w32_make_args = \
229   prefix=$(idir) CROSS=$(host_alias)- clean GC-inlined
230
231 gpg4win_pkg_pthreads_w32_make_args_inst = \
232   prefix=$$$${pkgidir} CROSS=$(host_alias)- 
233
234 gpg4win_pkg_bzip2_make_args = \
235   CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
236
237 gpg4win_pkg_bzip2_make_args_inst = \
238   PREFIX=$$$${pkgidir} CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
239
240
241 # Supported binary packages.
242 gpg4win_bpkgs = libiconv gettext pkgconfig zlib libpng jpeg pango cairo \
243                 atk gtk+ gpgee crypt regex qt kdesupport oxygen-icons kdelibs \
244                 kleopatra
245
246 # libiconv needs some special magic to generate a usable import
247 # library.
248 define gpg4win_pkg_libiconv_post_install
249 (cp $(srcdir)/libiconv.def $$$${pkgidir}/lib;           \
250 cd $$$${pkgidir}/lib;                                   \
251 $(DLLTOOL) --output-lib libiconv.dll.a --def libiconv.def)
252 endef
253
254 # libiconv needs some special magic to generate a usable import
255 # library.  Note that we include some internal symbols that are not
256 # actually part of the DLL.  They are needed by the AM_GNU_GETTEXT
257 # configure test, but not used otherwise.
258 define gpg4win_pkg_gettext_post_install
259 (cp $(srcdir)/libintl.def $$$${pkgidir}/lib;            \
260 cd $$$${pkgidir}/lib;                                   \
261 $(DLLTOOL) --output-lib libintl.dll.a --def libintl.def)
262 endef
263
264
265 # Zlib needs some special magic to generate a libtool file.
266 define gpg4win_pkg_zlib_post_install
267 (cd $$$${pkgidir_dev};                                  \
268 echo "dlname='../bin/zlib1.dll'" > lib/libz.la; \
269 echo "library_names='libz.dll.a'" >> lib/libz.la;       \
270 echo "old_library='libz.a'" >> lib/libz.la;             \
271 echo "dependency_libs=''" >> lib/libz.la;               \
272 echo "current=1" >> lib/libz.la;                        \
273 echo "age=2" >> lib/libz.la;                            \
274 echo "revision=3" >> lib/libz.la;                       \
275 echo "installed=yes" >> lib/libz.la;                    \
276 echo "shouldnotlink=no" >> lib/libz.la;                 \
277 echo "dlopen=''" >> lib/libz.la;                        \
278 echo "dlpreopen=''" >> lib/libz.la;                     \
279 echo "libdir=\"$$$${pkgidir}/lib\"" >> lib/libz.la;)
280 endef
281
282 # To make shure that we link against the static versions we need
283 # remove the import libs from crypt
284 define gpg4win_pkg_crypt_post_install
285 (cd $$$${pkgidir}/lib && rm libcrypt.dll.a libcrypt.lib)
286 endef
287
288 # To make shure that we link against the static versions we need
289 # remove the import libs from regex
290 # FIXME: We need to shared version or libtool refuses to build the
291 # claws plugin.
292 #define gpg4win_pkg_regex_post_install
293 #(cd $$$${pkgidir}/lib && rm libregex.dll.a libregex.lib)
294 #endef
295
296 # We need to fix the prefix in the various packages using pkgconfig,
297 # or we can't substitute it properly in our pkg-config wrapper.
298 define gpg4win_pkg_glib_post_install
299  (cd $$$${pkgidir};                                                     \
300  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
301 endef
302
303 define gpg4win_pkg_atk_post_install
304  (cd $$$${pkgidir_dev};                                                 \
305  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
306 endef
307
308 define gpg4win_pkg_cairo_post_install
309  (cd $$$${pkgidir_dev};                                                 \
310  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
311 endef
312
313 define gpg4win_pkg_pango_post_install
314  (cd $$$${pkgidir_dev};                                                 \
315  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
316 endef
317
318 define gpg4win_pkg_gtk__post_install
319  (cd $$$${pkgidir_dev};                                                 \
320  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
321 endef
322
323 # In libpng, the pkg-config files are surprisingly found in the
324 # runtime package.
325 define gpg4win_pkg_libpng_post_install
326  (cd $$$${pkgidir};                                                     \
327  perl -pi -e 's/^prefix=.*$$$$/prefix=\/usr/' `find . -name \*.pc`)
328 endef
329
330
331 define gpg4win_pkg_libiconv_post_install
332 (cp $(srcdir)/libiconv.def $$$${pkgidir}/lib;           \
333 cd $$$${pkgidir}/lib;                                   \
334 $(DLLTOOL) --output-lib libiconv.dll.a --def libiconv.def)
335 endef
336
337
338 # kdesupport ships gettext, which we already have.  Remove a stow
339 # conflict about that.  Also remove a stow conflict with kdelibs-lib.
340 define gpg4win_pkg_kdesupport_post_install
341 (rm -fR "$$$${pkgidir_dev}/share/locale"; \
342  rm -fR "$$$${pkgidir_dev}/share/apps/cmake/modules")
343 endef
344
345
346 # Supported internal packages.  Internal packages do not require any
347 # special support.  Thus, this variable is actually unused, and no
348 # rules are added in gpg4win.mk.
349 gpg4win_ipkgs = man_novice_de man_advanced_de man_novice_en man_advanced_en
350
351
352 # Now do the bunch of the work.  This is a bunch of dirty magic to
353 # integrate our special makefile into automake, while not actually
354 # including it (make should include it).  This is in turn necessary
355 # because automake can't deal with the elegant magic in the actual
356 # Makefile.
357
358 define INCLUDE_BY_MAKE
359 include $(1)
360 endef
361
362 $(eval $(call INCLUDE_BY_MAKE,gpg4win.mk))
363
364 clean-local: clean-gpg4win
365
366 common_nsi = inst-sections.nsi installer.nsi installer-finish.nsi       \
367   $(addsuffix .nsi,$(addprefix inst-,$(gpg4win_build_list)))            \
368   $(addsuffix .nsi,$(addprefix uninst-,$(gpg4win_build_list)))
369
370
371 # Prepare the versioninfo file.  The pipeline extracts the last
372 # occurrence of a package with the same name, sorts the entries and
373 # writes the file with DOS line endings.  This helps to avoid
374 # duplicate entries in case one package has been rebuild (which is
375 # common when developing a new version).
376 versioninfo.txt : playground/build/versioninfo.txt
377         set -e; \
378         ( while read a b; do echo "$$a $$(basename $$b)"; \
379             done < playground/build/versioninfo.txt \
380           | sort -k2 -sf | tac | uniq -f1 ; \
381           echo '=========== SHA-1 checksum ============= == package ==' \
382          ) | tac | awk '{printf "%s\r\n", $$0}' > versioninfo.txt
383
384 NEWS.tmp : $(top_srcdir)/NEWS
385         sed -e '/^#/d' <$(top_srcdir)/NEWS >NEWS.tmp
386
387 README.en.txt : versioninfo.txt NEWS.tmp $(top_srcdir)/doc/README.en.txt
388         sed -e '/^;.*/d;/!VERSIONINFO!/{r versioninfo.txt' -e 'd;}' \
389         -e '/!NEWSFILE!/{r NEWS.tmp' -e 'd;}' \
390         -e '/!PKG-COPYRIGHT!/{r $(top_srcdir)/doc/pkg-copyright.txt' -e 'd;}' \
391         -e 's,!VERSION!,$(VERSION),g' \
392            < $(top_srcdir)/doc/README.en.txt \
393            | awk '{printf "%s\r\n", $$0}' >README.en.txt
394
395 installer-options.ini : $(top_srcdir)/src/installer-options.ini.in
396         cat $(top_srcdir)/src/installer-options.ini.in >installer-options.ini
397
398 README.de.txt : versioninfo.txt NEWS.tmp $(top_srcdir)/doc/README.de.txt
399         sed -e '/^;.*/d;/!VERSIONINFO!/{r versioninfo.txt' -e 'd;}' \
400         -e '/!NEWSFILE!/{r NEWS.tmp' -e 'd;}' \
401         -e '/!PKG-COPYRIGHT!/{r $(top_srcdir)/doc/pkg-copyright.txt' -e 'd;}' \
402         -e 's,!VERSION!,$(VERSION),g' \
403            < $(top_srcdir)/doc/README.de.txt \
404            | awk '{printf "%s\r\n", $$0}' >README.de.txt
405
406 # For some nut-crazy reason someone thought it would be a great idea
407 # if makensis changed to the directory of the source file at startup.
408 # So we have to pull a couple of strings to correct this.
409 gpg4win-$(VERSION).exe: gpg4win.nsi $(common_nsi) stamps/stamp-final \
410                         g4wihelp.dll gpgwrap.exe README.en.txt README.de.txt \
411                         installer-options.ini versioninfo.txt
412         $(MAKENSIS) -V3 -DBUILD_DIR=`pwd` -DTOP_SRCDIR=$(top_srcdir) \
413                 -DSRCDIR=$(srcdir) $(srcdir)/gpg4win.nsi
414
415 gpg4win-light-$(VERSION).exe: gpg4win.nsi $(common_nsi) stamps/stamp-final \
416                         g4wihelp.dll gpgwrap.exe README.en.txt README.de.txt \
417                         installer-options.ini versioninfo.txt
418         $(MAKENSIS) -V3 -DBUILD_DIR=`pwd` -DTOP_SRCDIR=$(top_srcdir) \
419                 -DSRCDIR=$(srcdir) -DGPG4WIN_LIGHT=1 $(srcdir)/gpg4win.nsi
420
421 gpg4win-$(VERSION).wix: gpg4win.nsi $(common_nsi) stamps/stamp-final \
422                         gpgwrap.exe README.en.txt README.de.txt versioninfo.txt
423         perl make-msi.pl --guids $(srcdir)/make-msi.guids \
424                 --manifest gpg4win-$(VERSION).files \
425                 -DBUILD_DIR=. -DTOP_SRCDIR=$(top_srcdir) \
426                 -DSRCDIR=$(srcdir) $(srcdir)/gpg4win.nsi > $@
427
428 gpg4win-light-$(VERSION).wix: gpg4win.nsi $(common_nsi) stamps/stamp-final \
429                         gpgwrap.exe README.en.txt README.de.txt versioninfo.txt
430         perl make-msi.pl --guids $(srcdir)/make-msi.guids \
431                 --manifest gpg4win-light-$(VERSION).files \
432                 -DBUILD_DIR=. -DTOP_SRCDIR=$(top_srcdir) \
433                 -DSRCDIR=$(srcdir) -DGPG4WIN_LIGHT=1 $(srcdir)/gpg4win.nsi > $@
434
435 .PHONY: msi
436 msi: gpg4win-$(VERSION).wix gpg4win-light-$(VERSION).wix
437
438
439 stamps/stamp-dist-self: versioninfo.txt
440         (set -e; cd ..; make dist-bzip2)
441         touch stamps/stamp-dist-self
442
443 gpg4win-src-$(VERSION).exe: gpg4win-src.nsi $(common_nsi) stamps/stamp-final \
444                             stamps/stamp-dist-self installer-options.ini
445         $(MAKENSIS) -V3 -DBUILD_DIR=`pwd` -DTOP_SRCDIR=$(top_srcdir) \
446                 -DSRCDIR=$(srcdir) $(srcdir)/gpg4win-src.nsi
447
448 g4wihelp.dll: g4wihelp.c exdll.h
449         $(CC) -I. -shared -O2 -o g4wihelp.dll $(srcdir)/g4wihelp.c \
450            -lwinmm -lgdi32
451         $(STRIP) g4wihelp.dll
452
453 gpgwrap.exe: gpgwrap.c
454         $(CC) -I. -I.. -DHAVE_CONFIG_H -O2 -o gpgwrap.exe $(srcdir)/gpgwrap.c 
455         $(STRIP) gpgwrap.exe
456
457 if BUILD_SOURCE_INSTALLER
458 all_src = gpg4win-src-$(VERSION).exe
459 else
460 all_src =
461 endif
462
463 if BUILD_LIGHT_INSTALLER
464 all_light = gpg4win-light-$(VERSION).exe
465 else
466 all_light =
467 endif
468
469 all-local: gpg4win-$(VERSION).exe $(all_light) $(all_src)
470
471 clean-local:
472         rm -f gpg4win-$(VERSION).exe gpg4win-light-$(VERSION).exe \
473             gpg4win-src-$(VERSION).exe