tUse cross-compile windres if available - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 8a9907c11c173960c9914fe258182104995e4ca9
parent ab1b283c49d5d75fa3a81ab079b7c7497740b955
Author: Ben Webb 
Date:   Sat,  7 Nov 2020 19:14:15 -0800

Use cross-compile windres if available

Diffstat:
  M configure.ac                        |       1 +
  M src/Makefile.am                     |       3 ++-

2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
t@@ -78,6 +78,7 @@ if test "$CYGWIN" = "yes" ; then
    AC_MSG_RESULT([Configuring for native Win32 binary under Cygwin])
    AC_DEFINE(CYGWIN, 1, [Define if building under the Cygwin environment])
 
+   AC_CHECK_TOOL([WINDRES], [windres], [windres])
    dnl This flag allows linking with MSVC-generated DLLs. -fnative-struct was
    dnl used by gcc 2, and -mms-bitfields by gcc 3, so it is tested for here.
    bkp_CFLAGS="$CFLAGS"
diff --git a/src/Makefile.am b/src/Makefile.am
t@@ -39,6 +39,7 @@ DOPEBIN    = ${DOPEDIR}/dopewars
 PIXMAPS    = dopewars-pill.png dopewars-shot.png dopewars-weed.png
 EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest
 CLEANFILES = dopewars.res dopewars.exe
+WINDRES    = @WINDRES@
 
 install-exec-hook:
         @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \
t@@ -58,4 +59,4 @@ uninstall-local:
         done
 
 %.res: %.rc
-        windres -O coff -o $@ $<
+        ${WINDRES} -O coff -o $@ $<