1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix Makefile.gtk in the wake of the new [XT] program type.

It's not the recommended makefile any more, but it's not too hard
to keep it working for the moment.
This commit is contained in:
Simon Tatham 2016-03-25 09:10:50 +00:00
parent e30e6b0f1d
commit 68b1933326

View File

@ -1398,11 +1398,12 @@ if (defined $makefiles{'gtk'}) {
print "\n\n";
foreach $p (&prognames("X:XT:U:UT")) {
($prog, $type) = split ",", $p;
($ldflags = $type) =~ s/T$//;
$objstr = &objects($p, "X.o", undef, undef);
print &splitline($prog . ": " . $objstr), "\n";
$libstr = &objects($p, undef, undef, "-lX");
print &splitline("\t\$(CC) -o \$@ " .
$objstr . " \$(${type}LDFLAGS) $libstr", 69), "\n\n";
$objstr . " \$(${ldflags}LDFLAGS) $libstr", 69), "\n\n";
}
foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
if ($forceobj{$d->{obj_orig}}) {