]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Don't use GNUish pattern rules in the Unix Makefile, since they're not
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 14 Jan 2005 12:26:38 +0000 (12:26 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 14 Jan 2005 12:26:38 +0000 (12:26 +0000)
supported by non-GNU makes.  This allows the standard Solaris /usr/ccs/bin/make
to handle that Makefile.

[originally from svn r5108]

mkfiles.pl

index 840a409d4903e1f30ccd11d0d3840f1ce73bdb8c..c789d92fb49dc2b02d710aa1b93d508804ecabdf 100755 (executable)
@@ -895,8 +895,6 @@ if (defined $makefiles{'gtk'}) {
     "\n".
     ".SUFFIXES:\n".
     "\n".
-    "%.o:\n".
-    "\t\$(CC) \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) -c \$<\n".
     "\n";
     print &splitline("all:" . join "", map { " $_" } &progrealnames("XU"));
     print "\n\n";
@@ -911,6 +909,7 @@ if (defined $makefiles{'gtk'}) {
     foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
       print &splitline(sprintf("%s: %s", $d->{obj}, join " ", @{$d->{deps}})),
           "\n";
+      print &splitline("\t\$(CC) \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) -c $d->{deps}->[0]\n");
     }
     print "\n";
     print $makefile_extra{'gtk'};