mirror of
https://github.com/nasa/trick.git
synced 2025-03-24 04:55:22 +00:00
parent
7c78187abf
commit
e39d57461c
@ -119,13 +119,11 @@ read_lib_deps(0, @top_file_names) ;
|
|||||||
#print map {"$_\n"} (sort keys %processed_files) ;
|
#print map {"$_\n"} (sort keys %processed_files) ;
|
||||||
|
|
||||||
my ($n , $f , $k , $i , $m);
|
my ($n , $f , $k , $i , $m);
|
||||||
my $num_inc_objs ;
|
|
||||||
my @all_cfly_files ;
|
my @all_cfly_files ;
|
||||||
my @all_read_only_libs ;
|
my @all_read_only_libs ;
|
||||||
my @all_compile_libs ;
|
my @all_compile_libs ;
|
||||||
my %files_by_dir ;
|
my %files_by_dir ;
|
||||||
my ( $sp_dir , $src_dir , $sp_file , $base_name , $suffix) ;
|
my ( $sp_dir , $src_dir , $sp_file , $base_name , $suffix) ;
|
||||||
my @temp_array ;
|
|
||||||
|
|
||||||
my @exclude_dirs ;
|
my @exclude_dirs ;
|
||||||
@exclude_dirs = split /:/ , "$ENV{TRICK_EXCLUDE}:$ENV{TRICK_EXT_LIB_DIRS}";
|
@exclude_dirs = split /:/ , "$ENV{TRICK_EXCLUDE}:$ENV{TRICK_EXT_LIB_DIRS}";
|
||||||
@ -259,19 +257,15 @@ build/S_source.d: ;
|
|||||||
|
|
||||||
my %object_files_by_type ;
|
my %object_files_by_type ;
|
||||||
my %model_build_dirs ;
|
my %model_build_dirs ;
|
||||||
$num_inc_objs = 0 ;
|
|
||||||
# List out all of the object files and put the list in a file that we can pass to the linker.
|
# List out all of the object files and put the list in a file that we can pass to the linker.
|
||||||
# Passing all of them directly to the linker in the command line can exceed the line limit.
|
# Passing all of them directly to the linker in the command line can exceed the line limit.
|
||||||
open MODEL_LINK_LIST, ">build/model_link_list" or die "Could not open build/model_link_list" ;
|
open MODEL_LINK_LIST, ">build/model_link_list" or die "Could not open build/model_link_list" ;
|
||||||
foreach my $ext ( qw{ c C cc cxx cpp c++ } ) {
|
foreach my $ext ( qw{ c C cc cxx cpp c++ } ) {
|
||||||
print MAKEFILE "MODEL_${ext}_OBJECTS :=" ;
|
print MAKEFILE "MODEL_${ext}_OBJECTS :=" ;
|
||||||
foreach $k ( sort keys %files_by_dir ) {
|
foreach $k ( sort keys %files_by_dir ) {
|
||||||
if ( scalar @{$files_by_dir{$k}{$ext}} ne 0 ) {
|
foreach $f ( @{$files_by_dir{$k}{$ext}} ) {
|
||||||
foreach $f ( @{$files_by_dir{$k}{$ext}} ) {
|
print MAKEFILE " \\\n build$k/$files_by_dir{$k}{src_dir}$f" . "o" ;
|
||||||
print MAKEFILE " \\\n build$k/$files_by_dir{$k}{src_dir}$f" . "o" ;
|
print MODEL_LINK_LIST "build$k/$files_by_dir{$k}{src_dir}$f" . "o\n" ;
|
||||||
print MODEL_LINK_LIST "build$k/$files_by_dir{$k}{src_dir}$f" . "o\n" ;
|
|
||||||
}
|
|
||||||
$num_inc_objs++ ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print MAKEFILE "\n\n"
|
print MAKEFILE "\n\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user