mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
e30e6b0f1d
commit
68b1933326
@ -1398,11 +1398,12 @@ if (defined $makefiles{'gtk'}) {
|
|||||||
print "\n\n";
|
print "\n\n";
|
||||||
foreach $p (&prognames("X:XT:U:UT")) {
|
foreach $p (&prognames("X:XT:U:UT")) {
|
||||||
($prog, $type) = split ",", $p;
|
($prog, $type) = split ",", $p;
|
||||||
|
($ldflags = $type) =~ s/T$//;
|
||||||
$objstr = &objects($p, "X.o", undef, undef);
|
$objstr = &objects($p, "X.o", undef, undef);
|
||||||
print &splitline($prog . ": " . $objstr), "\n";
|
print &splitline($prog . ": " . $objstr), "\n";
|
||||||
$libstr = &objects($p, undef, undef, "-lX");
|
$libstr = &objects($p, undef, undef, "-lX");
|
||||||
print &splitline("\t\$(CC) -o \$@ " .
|
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")) {
|
foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
|
||||||
if ($forceobj{$d->{obj_orig}}) {
|
if ($forceobj{$d->{obj_orig}}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user