7 |
|
BEGIN { |
8 |
|
use ToolBox; |
9 |
|
$buildfile="BuildFile"; |
10 |
< |
#$toolbox=ToolBox->new(); |
10 |
> |
$toolbox=ToolBox->new(); |
11 |
|
} |
12 |
|
|
13 |
|
#Parse the BuildFile |
108 |
|
if ( ! defined $$hashref{name} ) { |
109 |
|
($$hashref{name}=$$hashref{file})=~s/\..*//; |
110 |
|
} |
111 |
< |
$fileclass=getclass($file); |
112 |
< |
$toolbox->maketargets("exe",$fileclass, $$hashref{name}, $file ); |
113 |
< |
print GNUmakefile "bin::$file\n\n"; |
111 |
> |
# This stuff for later |
112 |
> |
#$fileclass=$toolbox->getclass($file); |
113 |
> |
#$toolbox->maketargets("exe",$fileclass, $$hashref{name}, $file ); |
114 |
> |
print GNUmakefile "bin::$$hashref{name}\n"; |
115 |
> |
print GNUmakefile "$$hashref{name}::$$hashref{file}\n"; |
116 |
|
} |
117 |
|
|
118 |
|
sub External_StartTag { |
174 |
|
print GNUmakefile "local__$$hashref{name}=true\n"; |
175 |
|
} |
176 |
|
|
177 |
< |
sub CheckBuildFile($directory) { |
177 |
> |
sub CheckBuildFile { |
178 |
|
my $classdir=shift; |
179 |
|
$ClassName=""; |
180 |
|
$thisfile="$classdir/$buildfile"; |
205 |
|
} |
206 |
|
|
207 |
|
# Split up the Class Block String into a useable array |
208 |
< |
sub _CutBlock($string) { |
208 |
> |
sub _CutBlock { |
209 |
|
my $string= shift @_; |
210 |
|
@BlockClassA = split /\//, $string; |
211 |
|
} |