Lines Matching refs:target
238 # into %target [class] and make print_table_entry
249 # resolve_config(target)
252 # chosen target and any target it inherits from.
360 # Collect target configurations
711 # config target attributes
728 # Some target attributes have been renamed, this is the translation table
757 my $target="";
1061 die "target already defined - $target (offending arg: $_)\n" if ($target ne "");
1062 $target=$_;
1064 unless ($_ eq $target || /^no-/ || /^disable-/)
1150 # If no target was given, try guessing.
1151 unless ($target) {
1164 $target = $system_config{target};
1193 if ($target eq "TABLE") {
1201 if ($target eq "LIST") {
1208 if ($target eq "HASH") {
1218 print "for target $target\n";
1250 if ($target =~ m/^CygWin32(-.*)$/) {
1251 $target = "Cygwin".$1;
1255 my ($d, $t) = $target =~ m/^(debug-)?(.*)$/;
1259 # If we do not find debug-foo in the table, the target is set to foo.
1260 if (!$table{$target}) {
1261 $target = $t;
1265 if ($target) {
1268 # target if not.
1270 foreach ( ( "$target-$user{CC}", "$target", undef ) ) {
1274 $target = $found;
1276 # If we don't have a config target now, we try the C compiler as we
1279 $target = $cc if $table{$cc} && !$table{$cc}->{template};
1282 &usage unless $target;
1286 $config{target} = $target;
1287 my %target = resolve_config($target);
1290 $target{$target_attr_translate{$_}} = $target{$_}
1291 if $target{$_};
1292 delete $target{$_};
1295 %target = ( %{$table{DEFAULTS}}, %target );
1297 my %conf_files = map { $_ => 1 } (@{$target{_conf_fname_int}});
1302 foreach my $feature (@{$target{disable}}) {
1304 warn "***** config $target disables deprecated feature $feature\n";
1306 die "***** config $target disables unknown feature $feature\n";
1310 foreach my $feature (@{$target{enable}}) {
1313 warn "***** config $target enables deprecated feature $feature\n";
1315 die "***** config $target enables unknown feature $feature\n";
1322 $disabled{uplink} = 'no uplink_arch' unless (defined $target{uplink_arch});
1324 $disabled{asm} = 'no asm_arch' unless (defined $target{asm_arch});
1328 $target{CXXFLAGS}//=$target{CFLAGS} if $target{CXX};
1329 $target{cxxflags}//=$target{cflags} if $target{CXX};
1330 $target{exe_extension}=".exe" if ($config{target} eq "DJGPP");
1331 $target{exe_extension}=".pm" if ($config{target} =~ /vos/);
1334 # empty, use values from %target (acting as a default).
1363 || $mkvalue->($ref_type, $target{$_});
1388 $config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
1391 $target{build_scheme} = [ $target{build_scheme} ]
1392 if ref($target{build_scheme}) ne "ARRAY";
1395 @{$target{build_scheme}};
1418 if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m)
1425 if ($target =~ /linux.*-mips/ && !$disabled{asm}
1429 $value = '-mips2' if ($target =~ /mips32/);
1430 $value = '-mips3' if ($target =~ /mips64/);
1439 if ($target{thread_scheme} eq "(unknown)") {
1445 if ($target{thread_scheme} eq "(unknown)") {
1487 if (($target{shared_target} // '') eq "")
1491 disable('no-shared-target', 'pic');
1530 $target{$_} = "";
1538 if ($target{sys_id} ne "")
1540 push @{$config{openssl_sys_defines}}, "OPENSSL_SYS_$target{sys_id}";
1550 if ($target eq "linux-ppc64") {
1551 $target{perlasm_scheme} = "linux64v2" if ($predefined_C{_CALL_ELF} == 2);
1558 # config target and its associated build file are programmed to deal
1563 if ($target{makedep_scheme}) {
1564 $config{makedep_scheme} = $target{makedep_scheme};
1567 $config{makedepcmd} = $target{makedepcmd} if $target{makedepcmd};
1615 foreach (sort split(/\s+/,$target{bn_ops})) {
1663 elsif ($config{target} =~ /^VC-/)
1680 if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
1701 if ($target =~ m/^BSD/) {
1718 if ($target =~ m/^linux/) {
1723 } elsif ($target =~ m/^BSD/) {
1740 $target{module_cflags} = $target{shared_cflag} unless defined $target{module_cflags};
1741 $target{module_cxxflags} = $target{shared_cxxflag} unless defined $target{module_cxxflags};
1742 $target{module_ldflags} = $target{shared_ldflag} unless defined $target{module_ldflags};
1747 push @{$target{_conf_fname_int}}, $shared_info_pl;
1748 my $si = $target{shared_target};
1769 $target{$_} = defined $target{$_}
1770 ? add($si->{$_})->($target{$_})
1776 # ALL MODIFICATIONS TO %disabled, %config and %target MUST BE DONE FROM HERE ON
2083 target => \%target,
2387 # Collect the raw target
2783 # We already have a "test" target, and the current directory
2784 # is just silly to make a target for
2801 foreach (grep /_(asm|aux)_src$/, keys %target) {
2804 $target{$obj} = $target{$src};
2805 $target{$obj} =~ s/\.[csS]\b/.o/g; # C and assembler
2806 $target{$obj} =~ s/\.(cc|cpp)\b/_cc.o/g; # C++
2813 target => \%target,
3036 # it to fill %targets with target configurations. Those are then added to
3060 # For each target, check that it's configured with a hash table.
3064 warn "Deprecated target configuration for $_, ignoring...\n";
3066 warn "Misconfigured target configuration for $_ (should be a hash table), ignoring...\n";
3079 # codeblocks for the chosen target and all those it inherits from,
3082 my $target = shift;
3087 if (grep { $_ eq $target } @breadcrumbs) {
3088 die "inherit_from loop! target backtrace:\n "
3089 ,$target,"\n ",join("\n ", @breadcrumbs),"\n";
3092 if (!defined($table{$target})) {
3093 warn "Warning! target $target doesn't exist!\n";
3103 if ($table{$target}->{inherit_from}) {
3105 map { ref($_) eq "CODE" ? $_->() : $_ } @{$table{$target}->{inherit_from}};
3107 my %inherited_config = resolve_config($_, $target, @breadcrumbs);
3122 # We won't need inherit_from in this target any more, since we've
3124 delete $table{$target}->{inherit_from};
3128 # values of the target we're currently dealing with.
3133 # default combiner (below), and the result becomes this target's
3135 # - Otherwise, this target's value is assumed to be a string that
3141 keys %{$table{$target}});
3146 my $target = shift;
3159 return [ map { process_values($_, $inherited, $target, $entry) }
3165 ," found in target ",$target," -> ",$entry,"\n";
3172 # Current target doesn't have a value for the current key?
3175 if (!exists $table{$target}->{$key}) {
3176 $table{$target}->{$key} = $default_combiner;
3179 $table{$target}->{$key} = process_values($table{$target}->{$key},
3181 $target, $key);
3182 unless(defined($table{$target}->{$key})) {
3183 delete $table{$target}->{$key};
3186 # $previous && !($add_called || $previous ~~ $table{$target}->{$key})) {
3187 # warn "$key got replaced in $target\n";
3192 return %{$table{$target}};
3267 my $fullpath = catfile($_, "$name$target{exe_extension}");
3296 my %target = resolve_config($now_printing);
3300 return if $target{template};
3349 if (ref($target{$_}) eq "ARRAY") {
3350 printf "\$%-12s = %s\n", $_, join(" ", @{$target{$_}});
3352 printf "\$%-12s = %s\n", $_, $target{$_};
3360 if ($target{$_}) {
3361 if (ref($target{$_}) eq "ARRAY") {
3362 print " '",$_,"'"," " x ($largest - length($_))," => [ ",join(", ", map { "'$_'" } @{$target{$_}})," ],\n";
3364 print " '",$_,"'"," " x ($largest - length($_))," => '",$target{$_},"',\n";