In the cygwin Makefile, use "-o" on the windres command line to specify
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 21:53:47 +0000 (21:53 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 21:53:47 +0000 (21:53 +0000)
the output file.  This appears to be supported by windres, and is
required by wrc (the Winelib resource compiler).

git-svn-id: svn://svn.tartarus.org/sgt/putty@9661 cda61777-01e9-0310-a592-d414129be87e

mkfiles.pl

index 7cb42fb..c87ae4e 100755 (executable)
@@ -484,7 +484,7 @@ if (defined $makefiles{'cygwin'}) {
                          join " ", @{$d->{deps}})), "\n";
       }
       if ($d->{obj} =~ /\.res\.o$/) {
-         print "\t\$(RC) \$(RCFL) \$(RCFLAGS) ".$d->{deps}->[0]." ".$d->{obj}."\n\n";
+         print "\t\$(RC) \$(RCFL) \$(RCFLAGS) ".$d->{deps}->[0]." -o ".$d->{obj}."\n\n";
       } else {
          print "\t\$(CC) \$(COMPAT) \$(CFLAGS) \$(XFLAGS) -c ".$d->{deps}->[0]."\n\n";
       }