mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 12:02:47 -05:00
Merge out from trunk, to keep this branch viable. We are now up to
date as of r7913.
[originally from svn r7914]
[r7913 == d7eda6d99c
]
This commit is contained in:
28
mkfiles.pl
28
mkfiles.pl
@ -429,7 +429,7 @@ if (defined $makefiles{'cygwin'}) {
|
||||
if ($d->{obj} =~ /\.res\.o$/) {
|
||||
print "\t\$(RC) \$(RCFL) \$(RCFLAGS) ".$d->{deps}->[0]." ".$d->{obj}."\n\n";
|
||||
} else {
|
||||
print "\t\$(CC) \$(COMPAT) \$(XFLAGS) \$(CFLAGS) -c ".$d->{deps}->[0]."\n\n";
|
||||
print "\t\$(CC) \$(COMPAT) \$(CFLAGS) \$(XFLAGS) -c ".$d->{deps}->[0]."\n\n";
|
||||
}
|
||||
}
|
||||
print "\n";
|
||||
@ -486,7 +486,7 @@ if (defined $makefiles{'borland'}) {
|
||||
"\n".
|
||||
".c.obj:\n".
|
||||
&splitline("\tbcc32 -w-aus -w-ccc -w-par -w-pia \$(COMPAT)".
|
||||
" \$(XFLAGS) \$(CFLAGS) ".
|
||||
" \$(CFLAGS) \$(XFLAGS) ".
|
||||
(join " ", map {"-I$dirpfx$_"} @srcdirs) .
|
||||
" /c \$*.c",69)."\n".
|
||||
".rc.res:\n".
|
||||
@ -615,7 +615,7 @@ if (defined $makefiles{'vc'}) {
|
||||
print &splitline(sprintf("%s: %s", $d->{obj},
|
||||
join " ", @$extradeps, @{$d->{deps}})), "\n";
|
||||
if ($d->{obj} =~ /.obj$/) {
|
||||
print "\tcl \$(COMPAT) \$(XFLAGS) \$(CFLAGS) /c ".$d->{deps}->[0],"\n\n";
|
||||
print "\tcl \$(COMPAT) \$(CFLAGS) \$(XFLAGS) /c ".$d->{deps}->[0],"\n\n";
|
||||
} else {
|
||||
print "\trc \$(RCFL) -r \$(RCFLAGS) ".$d->{deps}->[0],"\n\n";
|
||||
}
|
||||
@ -935,8 +935,8 @@ if (defined $makefiles{'gtk'}) {
|
||||
(join " ", map {"-I$dirpfx$_"} @srcdirs) .
|
||||
" `\$(GTK_CONFIG) --cflags`").
|
||||
" -D _FILE_OFFSET_BITS=64\n".
|
||||
"XLDFLAGS = `\$(GTK_CONFIG) --libs`\n".
|
||||
"ULDFLAGS =#\n".
|
||||
"XLDFLAGS = \$(LDFLAGS) `\$(GTK_CONFIG) --libs`\n".
|
||||
"ULDFLAGS = \$(LDFLAGS)\n".
|
||||
"INSTALL=install\n",
|
||||
"INSTALL_PROGRAM=\$(INSTALL)\n",
|
||||
"INSTALL_DATA=\$(INSTALL)\n",
|
||||
@ -958,8 +958,8 @@ if (defined $makefiles{'gtk'}) {
|
||||
$objstr = &objects($p, "X.o", undef, undef);
|
||||
print &splitline($prog . ": " . $objstr), "\n";
|
||||
$libstr = &objects($p, undef, undef, "-lX");
|
||||
print &splitline("\t\$(CC)" . $mw . " \$(${type}LDFLAGS) -o \$@ " .
|
||||
$objstr . " $libstr", 69), "\n\n";
|
||||
print &splitline("\t\$(CC)" . $mw . " -o \$@ " .
|
||||
$objstr . " \$(${type}LDFLAGS) $libstr", 69), "\n\n";
|
||||
}
|
||||
foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
|
||||
if ($forceobj{$d->{obj_orig}}) {
|
||||
@ -968,7 +968,7 @@ if (defined $makefiles{'gtk'}) {
|
||||
print &splitline(sprintf("%s: %s", $d->{obj},
|
||||
join " ", @{$d->{deps}})), "\n";
|
||||
}
|
||||
print &splitline("\t\$(CC) \$(COMPAT) \$(XFLAGS) \$(CFLAGS) -c $d->{deps}->[0]\n");
|
||||
print &splitline("\t\$(CC) \$(COMPAT) \$(CFLAGS) \$(XFLAGS) -c $d->{deps}->[0]\n");
|
||||
}
|
||||
print "\n";
|
||||
print $makefile_extra{'gtk'}->{'end'};
|
||||
@ -1021,8 +1021,8 @@ if (defined $makefiles{'ac'}) {
|
||||
$objstr = &objects($p, "X.o", undef, undef);
|
||||
print &splitline($prog . ": " . $objstr), "\n";
|
||||
$libstr = &objects($p, undef, undef, "-lX");
|
||||
print &splitline("\t\$(CC)" . $mw . " \$(${type}LDFLAGS) -o \$@ " .
|
||||
$objstr . " $libstr", 69), "\n\n";
|
||||
print &splitline("\t\$(CC)" . $mw . " -o \$@ " .
|
||||
$objstr . " \$(${type}LDFLAGS) $libstr", 69), "\n\n";
|
||||
}
|
||||
foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
|
||||
if ($forceobj{$d->{obj_orig}}) {
|
||||
@ -1031,7 +1031,7 @@ if (defined $makefiles{'ac'}) {
|
||||
print &splitline(sprintf("%s: %s", $d->{obj},
|
||||
join " ", @{$d->{deps}})), "\n";
|
||||
}
|
||||
print &splitline("\t\$(CC) \$(COMPAT) \$(XFLAGS) \$(CFLAGS) -c $d->{deps}->[0]\n");
|
||||
print &splitline("\t\$(CC) \$(COMPAT) \$(CFLAGS) \$(XFLAGS) -c $d->{deps}->[0]\n");
|
||||
}
|
||||
print "\n";
|
||||
print $makefile_extra{'gtk'}->{'end'};
|
||||
@ -1232,7 +1232,7 @@ if (defined $makefiles{'lcc'}) {
|
||||
}
|
||||
if ($d->{obj} =~ /\.obj$/) {
|
||||
print &splitline("\tlcc -O -p6 \$(COMPAT)".
|
||||
" \$(XFLAGS) \$(CFLAGS) ".$d->{deps}->[0],69)."\n";
|
||||
" \$(CFLAGS) \$(XFLAGS) ".$d->{deps}->[0],69)."\n";
|
||||
} else {
|
||||
print &splitline("\tlrc \$(RCFL) -r \$(RCFLAGS) ".
|
||||
$d->{deps}->[0],69)."\n";
|
||||
@ -1317,9 +1317,9 @@ if (defined $makefiles{'osx'}) {
|
||||
}
|
||||
$firstdep = $d->{deps}->[0];
|
||||
if ($firstdep =~ /\.c$/) {
|
||||
print "\t\$(CC) \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) -c \$<\n";
|
||||
print "\t\$(CC) \$(COMPAT) \$(FWHACK) \$(CFLAGS) \$(XFLAGS) -c \$<\n";
|
||||
} elsif ($firstdep =~ /\.m$/) {
|
||||
print "\t\$(CC) -x objective-c \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) -c \$<\n";
|
||||
print "\t\$(CC) -x objective-c \$(COMPAT) \$(FWHACK) \$(CFLAGS) \$(XFLAGS) -c \$<\n";
|
||||
}
|
||||
}
|
||||
print "\n".$makefile_extra{'osx'}->{'end'};
|
||||
|
Reference in New Issue
Block a user