From: ben Date: Fri, 14 Jan 2005 12:26:38 +0000 (+0000) Subject: Don't use GNUish pattern rules in the Unix Makefile, since they're not X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/585fc1f1693b276c5844e2afd2de206e7158888c Don't use GNUish pattern rules in the Unix Makefile, since they're not supported by non-GNU makes. This allows the standard Solaris /usr/ccs/bin/make to handle that Makefile. git-svn-id: svn://svn.tartarus.org/sgt/putty@5108 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mkfiles.pl b/mkfiles.pl index 840a409d..c789d92f 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -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'};