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