1 package MakeObjectGenerator
;
3 # ************************************************************
4 # Description : Generates object files for generic Makefiles.
5 # Author : Chad Elliott
6 # Create Date : 5/23/2003
7 # ************************************************************
9 # ************************************************************
11 # ************************************************************
18 @ISA = qw(ObjectGenerator);
20 my $dm = bless {}, 'DirectoryManager';
22 # ************************************************************
24 # ************************************************************
27 my $noext = $dm->translate_directory($_[1]);
29 my @dirs = (defined $ENV{VDIR
} ?
$ENV{VDIR
} : '');
30 $noext =~ s/\.[^\.]+$//o;
32 push(@exts, $ENV{SOEXT
}) if (defined $ENV{SOEXT
});
33 push(@dirs, $ENV{VSHDIR
}) if (defined $ENV{VSHDIR
});
36 foreach my $dirs (@dirs) {
37 foreach my $ext (@exts) {
38 push(@objects, "$dirs$noext.$ext");