89 |
|
return $switch; |
90 |
|
} |
91 |
|
|
92 |
< |
sub _commontags { |
93 |
< |
my $self=shift; |
94 |
< |
my $switch=shift; |
95 |
< |
my $parse=shift; |
96 |
< |
|
97 |
< |
$self->verbose(">> _commontags: SW ".$switch." PARSE ".$parse." <<"); |
98 |
< |
|
99 |
< |
$switch->grouptag("Export",$parse); |
100 |
< |
$switch->addtag($parse,"Use",\&Use_start,$self, |
101 |
< |
\&OutToMakefile, $self, |
102 |
< |
"", $self); |
103 |
< |
$switch->addtag($parse,"Group",\&Group_start,$self, |
104 |
< |
\&OutToMakefile, $self, |
105 |
< |
"", $self); |
106 |
< |
$switch->grouptag("Group",$parse); |
107 |
< |
$switch->addtag($parse,"External", |
108 |
< |
\&External_StartTag,$self, |
109 |
< |
\&OutToMakefile, $self, |
110 |
< |
"", $self); |
111 |
< |
$switch->addtag($parse,"lib", |
112 |
< |
\&lib_start,$self, |
113 |
< |
\&OutToMakefile, $self, |
114 |
< |
"", $self); |
115 |
< |
$switch->addtag($parse,"Architecture", |
116 |
< |
\&Arch_Start,$self, |
117 |
< |
\&OutToMakefile, $self, |
118 |
< |
\&Arch_End,$self); |
119 |
< |
$switch->addtag($parse,"INCLUDE_PATH", |
120 |
< |
\&IncludePath_Start,$self, |
121 |
< |
\&OutToMakefile, $self, |
122 |
< |
"",$self); |
123 |
< |
return $switch; |
124 |
< |
} |
92 |
> |
sub _commontags |
93 |
> |
{ |
94 |
> |
my $self=shift; |
95 |
> |
my $switch=shift; |
96 |
> |
my $parse=shift; |
97 |
> |
|
98 |
> |
$self->verbose(">> _commontags: SW ".$switch." PARSE ".$parse." <<"); |
99 |
> |
|
100 |
> |
$switch->grouptag("Export",$parse); |
101 |
> |
$switch->addtag($parse,"Use", |
102 |
> |
\&Use_start,$self, |
103 |
> |
\&OutToMakefile, $self, |
104 |
> |
"", $self); |
105 |
> |
$switch->addtag($parse,"Group", |
106 |
> |
\&Group_start,$self, |
107 |
> |
\&OutToMakefile, $self, |
108 |
> |
"", $self); |
109 |
> |
$switch->grouptag("Group",$parse); |
110 |
> |
$switch->addtag($parse,"External", |
111 |
> |
\&External_StartTag,$self, |
112 |
> |
\&OutToMakefile, $self, |
113 |
> |
"", $self); |
114 |
> |
$switch->addtag($parse,"lib", |
115 |
> |
\&lib_start,$self, |
116 |
> |
\&OutToMakefile, $self,"", $self); |
117 |
> |
$switch->addtag($parse,"debuglib", |
118 |
> |
\&debuglib_start,$self, |
119 |
> |
\&OutToMakefile, $self, |
120 |
> |
"", $self); |
121 |
> |
$switch->addtag($parse,"Architecture", |
122 |
> |
\&Arch_Start,$self, |
123 |
> |
\&OutToMakefile, $self, |
124 |
> |
\&Arch_End,$self); |
125 |
> |
$switch->addtag($parse,"INCLUDE_PATH", |
126 |
> |
\&IncludePath_Start,$self, |
127 |
> |
\&OutToMakefile, $self, |
128 |
> |
"",$self); |
129 |
> |
return $switch; |
130 |
> |
} |
131 |
|
|
132 |
|
sub ParseBuildFile { |
133 |
|
my $self=shift; |
1050 |
|
} |
1051 |
|
} |
1052 |
|
|
1053 |
+ |
# Standard debug lib tag |
1054 |
+ |
# |
1055 |
+ |
sub debuglib_start |
1056 |
+ |
{ |
1057 |
+ |
my $self=shift; |
1058 |
+ |
my $name=shift; |
1059 |
+ |
my $hashref=shift; |
1060 |
+ |
|
1061 |
+ |
$self->verbose(">> debuglib_start: NM ".$name." <<"); |
1062 |
+ |
$self->{switch}->checktag($name, $hashref, 'name'); |
1063 |
+ |
|
1064 |
+ |
if ( $self->{Arch} ) |
1065 |
+ |
{ |
1066 |
+ |
print GNUmakefile "debuglib+=$$hashref{name}\n"; |
1067 |
+ |
} |
1068 |
+ |
} |
1069 |
+ |
|
1070 |
|
# |
1071 |
|
# libtype specification |
1072 |
|
# |