726 |
|
$self->{libtype_conext}=1; |
727 |
|
$self->{switch}->checktag($name, $hashref, 'type'); |
728 |
|
|
729 |
< |
print GNUmakefile "# Specify Library Type\n"; |
730 |
< |
print GNUmakefile "DefaultLibsOff=yes\n"; |
731 |
< |
if ( $$hashref{'type'}=~/^archive/i ) { |
732 |
< |
print GNUmakefile "LibArchive=true\n"; |
733 |
< |
} |
734 |
< |
elsif ($$hashref{'type'}=~/debug_archive/i ) { |
735 |
< |
print GNUmakefile "LibDebugArchive=true\n"; |
729 |
> |
my $string=$$hashref{'type'}; |
730 |
> |
# -- do some translation for backwards compatability |
731 |
> |
if ($$hashref{'type'}=~/debug_archive/i ) { |
732 |
> |
$string="archive_debug"; |
733 |
|
} |
734 |
|
elsif ($$hashref{'type'}=~/debug_shared/i ) { |
735 |
< |
print GNUmakefile "LibDebugShared=true\n"; |
739 |
< |
} |
740 |
< |
elsif ($$hashref{'type'}=~/shared/i ) { |
741 |
< |
print GNUmakefile 'LibShared=true'."\n"; |
735 |
> |
$string="shared_debug"; |
736 |
|
} |
737 |
< |
print GNUmakefile "\n"; |
737 |
> |
# -- call the Build defaults method |
738 |
> |
$self->Build_start($name, {"class" => "lib", "default" => $string }); |
739 |
|
} |
740 |
|
} |
741 |
|
} |