for $f (sort keys %listed) {
if ($f =~ /(.*)\.c$/) {
$base = $1;
- if (! $listed{"$base.lo"}) {
+ if (! $listed{"$base.o"}) {
print "O $f\n";
}
}
sub deps {
- $crule .= "\t\$(LTCOMPILE) -c -o \$@ \$<\n";
+ $crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n";
+ $crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n";
+ $crule .= "\telse true; fi\n";
+ $crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n";
$crule .= "\n";
$incdir = shift @ARGV;
}
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
- $obj =~ s/\.c$/.lo/;
+ $obj =~ s/\.c$/.o/;
$obj = "./$obj:";
if ($#deps >= 0) {
print OUT "$obj \$(srcdir)/$f";