Lines Matching +full:sub +full:- +full:engines

3 ## {- join("\n## ", @autowarntext) -}
4 {-
9 (our $osslprefix_q = platform->osslprefix()) =~ s/\$/\\\$/;
11 our $sover_dirname = platform->shlib_version_as_filename();
16 sub make_unix_path {
18 (my $vol, my $dirs, my $file) = File::Spec->splitpath($_[0]);
19 my @dirs = File::Spec->splitdir($dirs);
23 return File::Spec::Unix->catpath(
24 '', File::Spec::Unix->catdir('', $vol ? $vol : (), @dirs), $file);
26 sub sourcefile {
29 sub buildfile {
32 sub sourcedir {
35 sub builddir {
38 sub tree {
46 map { platform->staticname($_) }
49 map { platform->sharedname($_) // () }
52 map { platform->staticname($_) }
53 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
56 map { platform->sharedname($_) // () }
57 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
60 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
61 && $unified_info{attributes}->{modules}->{$_}->{engine} }
64 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
65 && !$unified_info{attributes}->{modules}->{$_}->{engine}
66 && !$unified_info{attributes}->{modules}->{$_}->{fips} }
69 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
70 && $unified_info{attributes}->{modules}->{$_}->{fips} }
73 grep { !$unified_info{attributes}->{programs}->{$_}->{noinst} }
76 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
77 && !$unified_info{attributes}->{scripts}->{$_}->{misc} }
80 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
81 && $unified_info{attributes}->{scripts}->{$_}->{misc} }
215 my $obj = platform->obj($_);
216 push @{$unified_info{includes_extra}->{$obj}}, qw(../);
219 my $obj = platform->obj($_);
220 push @{$unified_info{includes_extra}->{$obj}}, qw(./arch_32 ./arch64);
223 my $obj = platform->obj($_);
224 push @{$unified_info{includes_extra}->{$obj}}, qw(../);
227 my $obj = platform->obj($_);
232 push @{$unified_info{includes_extra}->{$obj}}, qw(../);
236 my $obj = platform->obj($_);
237 push @{$unified_info{includes_extra}->{$obj}}, qw(../ssl ./helpers);
240 my $obj = platform->obj($_);
241 push @{$unified_info{includes_extra}->{$obj}}, qw(../../ssl);
246 sub dependmagic {
252 -}
253 PLATFORM={- $config{target} -}
254 OPTIONS={- $config{options} -}
255 CONFIGURE_ARGS=({- join(", ",quotify_l(@{$config{perlargv}})) -})
256 SRCDIR={- $config{sourcedir} -}
257 BLDDIR={- $config{builddir} -}
258 FIPSKEY={- $config{FIPSKEY} -}
265 VERSION={- "$config{full_version}" -}
266 VERSION_NUMBER={- "$config{version}" -}
267 MAJOR={- $config{major} -}
268 MINOR={- $config{minor} -}
269 SHLIB_VERSION_NUMBER={- $config{shlib_version} -}
270 SHLIB_TARGET={- $target{shared_target} -}
272 LIBS={- join(", ", map { "-\n\t".$_.".OLB" } @libs) -}
273 SHLIBS={- join(", ", map { "-\n\t".$_.".EXE" } @shlibs) -}
274 MODULES={- join(", ", map { "-\n\t".$_.".EXE" }
280 @{$unified_info{modules}}) -}
281 FIPSMODULE={- # We do some extra checking here, as there should be only one
284 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
285 && $unified_info{attributes}->{modules}->{$_}->{fips} }
288 join(" ", map { platform->dso($_) } @fipsmodules) -}
289 FIPSMODULENAME={- die "More that one FIPS module" if scalar @fipsmodules > 1;
290 join(", ", map { basename(platform->dso($_)) } @fipsmodules) -}
291 PROGRAMS={- join(", ", map { "-\n\t".$_.".EXE" } @{$unified_info{programs}}) -}
292 SCRIPTS={- join(", ", map { "-\n\t".$_ } @{$unified_info{scripts}}) -}
293 {- output_off() if $disabled{makedepend}; "" -}
294 DEPS={- our @deps = map { platform->isobj($_) ? platform->dep($_) : $_ }
295 grep { $unified_info{sources}->{$_}->[0] =~ /\.c$/ }
297 join(", ", map { "-\n\t".$_ } @deps); -}
298 {- output_on() if $disabled{makedepend}; "" -}
299 GENERATED_MANDATORY={- join(", ",
300 map { "-\n\t".$_ } @{$unified_info{depends}->{""}} ) -}
301 GENERATED_PODS={- # common0.tmpl provides @generated
306 $unified_info{attributes}->{depends}
307 ->{$x}->{$_}->{pod} // 0
309 keys %{$unified_info{attributes}->{depends}->{$x}}
310 ) ? "-\n\t".$x : ();
312 @generated) -}
313 GENERATED={- # common0.tmpl provides @generated
314 join(", ", map { platform->convertext($_) } @generated) -}
316 INSTALL_LIBS={- join(", ", map { "-\n\t".$_.".OLB" } @install_libs) -}
317 INSTALL_SHLIBS={- join(", ", map { "-\n\t".$_.".EXE" } @install_shlibs) -}
318 INSTALL_ENGINES={- join(", ", map { "-\n\t".$_.".EXE" } @install_engines) -}
319 INSTALL_MODULES={- join(", ", map { "-\n\t".$_.".EXE" } @install_modules) -}
320 INSTALL_FIPSMODULE={- join(", ", map { "-\n\t".$_.".EXE" } @install_fipsmodules) -}
322 INSTALL_PROGRAMS={- join(", ", map { "-\n\t".$_.".EXE" } @install_programs) -}
323 BIN_SCRIPTS={- join(", ", @install_bin_scripts) -}
324 MISC_SCRIPTS={- join(", ", @install_misc_scripts) -}
325 HTMLDOCS1={- join(", ", map { "-\n\t".$_ } @{$unified_info{htmldocs}->{man1}}) -}
326 HTMLDOCS3={- join(", ", map { "-\n\t".$_ } @{$unified_info{htmldocs}->{man3}}) -}
327 HTMLDOCS5={- join(", ", map { "-\n\t".$_ } @{$unified_info{htmldocs}->{man5}}) -}
328 HTMLDOCS7={- join(", ", map { "-\n\t".$_ } @{$unified_info{htmldocs}->{man7}}) -}
330 APPS_OPENSSL="{- use File::Spec::Functions;
331 catfile("apps","openssl") -}"
335 # In that case, configure with --prefix=SYS$COMMON:[OPENSSL] and then run
341 # Do not edit this manually. Use Configure --prefix=DIR to change this!
342 INSTALLTOP={- our $installtop =
344 $installtop -}
345 SYSTARTUP={- catdir($installtop, '[.SYS$STARTUP]'); -}
347 OPENSSLDIR={- catdir($config{openssldir}) or
349 : "SYS\$COMMON:[OPENSSL-COMMON]" -}
351 OPENSSLDIR_C={- platform->osslprefix() -}DATAROOT:[000000]
353 ENGINESDIR_C={- platform->osslprefix() -}ENGINES{- $sover_dirname.$target{pointer_size} -}:
355 MODULESDIR_C={- platform->osslprefix() -}MODULES{- $target{pointer_size} -}:
359 CC={- $config{CC} -}
360 CPP={- $config{CPP} -}
361 DEFINES={- our $defines = join('', map { ",$_" } @{$config{CPPDEFINES}}) -}
362 #INCLUDES={- our $includes = join(',', @{$config{CPPINCLUDES}}) -}
363 CPPFLAGS={- our $cppflags = join('', @{$config{CPPFLAGS}}) -}
364 CFLAGS={- join('', @{$config{CFLAGS}}) -}
365 LDFLAGS={- join('', @{$config{LFLAGS}}) -}
366 EX_LIBS={- join('', map { ",$_" } @{$config{LDLIBS}}) -}
368 PERL={- $config{PERL} -}
370 AS={- $config{AS} -}
371 ASFLAGS={- join(' ', @{$config{ASFLAGS}}) -}
375 ASOUTFLAG={- $target{asoutflag} -}$(OSSL_EMPTY)
377 PERLASM_SCHEME={- $target{perlasm_scheme} -}
380 CPPFLAGS_Q={- (my $c = $lib_cppflags.$cppflags) =~ s|"|""|g;
386 $x; -}
391 {- join( "\n \$(NODEBUG) ", @{ $target{setup_commands} // [] },
392 '!' ) -}
393 … = F$PARSE("$(SRCDIR)","[]A.;",,,"SYNTAX_ONLY,NO_CONCEAL") - ".][000000" - "[000000." - "][" - "]A…
399 $(NODEBUG) IF staging_dir .NES. "" THEN -
401 $(NODEBUG) IF staging_instdir - "]A.;" .NES. staging_instdir THEN -
402 staging_instdir = staging_instdir - "]A.;" + ".OPENSSL-INSTALL]"
403 $(NODEBUG) IF staging_instdir - "A.;" .NES. staging_instdir THEN -
404 staging_instdir = staging_instdir - "A.;" + "[OPENSSL-INSTALL]"
405 $(NODEBUG) IF staging_dir .NES. "" THEN -
407 $(NODEBUG) IF staging_datadir - "]A.;" .NES. staging_datadir THEN -
408 staging_datadir = staging_datadir - "]A.;" + ".OPENSSL-COMMON]"
409 $(NODEBUG) IF staging_datadir - "A.;" .NES. staging_datadir THEN -
410 staging_datadir = staging_datadir - "A.;" + "[OPENSSL-COMMON]"
417 …instdir,"$(INSTALLTOP)","[]A.;",,"SYNTAX_ONLY,NO_CONCEAL") - ".][000000" - "[000000." - "][" - "]A…
419 …datadir,"$(OPENSSLDIR)","[]A.;",,"SYNTAX_ONLY,NO_CONCEAL") - ".][000000" - "[000000." - "][" - "]A…
428 $(NODEBUG) openssl_inc1 = F$PARSE("[.include.openssl]","A.;",,,"syntax_only") - "A.;"
429 … $(NODEBUG) openssl_inc2 = F$PARSE("sourcetop:[include.openssl]","A.;",,,"SYNTAX_ONLY") - "A.;"
439 …$(NODEBUG) {- join("\n\t\$(NODEBUG) ", map { "DEFINE ".uc($_)." 'F\$ENV(\"DEFAULT\")'".uc($_)."\$(…
442 $(NODEBUG) {- join("\n\t\$(NODEBUG) ", map { "DEASSIGN ".uc($_) } @shlibs) || "!" -}
452 {- dependmagic('build_sw'); -} : build_libs_nodep, build_modules_nodep, build_programs_nodep
453 {- dependmagic('build_libs'); -} : build_libs_nodep
454 {- dependmagic('build_modules'); -} : build_modules_nodep
455 {- dependmagic('build_programs'); -} : build_programs_nodep
472 @ ! {- output_off() if $disabled{makedepend}; "" -}
473 @ WRITE SYS$OUTPUT "Warning: consider configuring with no-makedepend, because if"
476 @ ! {- output_on() if $disabled{makedepend}; "" -}
481 {- dependmagic('tests'); -} : build_programs_nodep, build_modules_nodep
484 @ ! {- output_off() if $disabled{tests}; "" -}
489 $(PERL) {- sourcefile("test", "run_tests.pl") -} $(TESTS)
493 @ ! {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
495 @ ! {- output_on() if !$disabled{tests}; "" -}
497 list-tests :
498 @ ! {- output_off() if $disabled{tests}; "" -}
500 @ $(PERL) {- sourcefile("test", "run_tests.pl") -} list
502 @ ! {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
504 @ ! {- output_on() if !$disabled{tests}; "" -}
506 install : install_sw install_ssldirs install_docs {- $disabled{fips} ? "" : "install_fips" -} insta…
512 @ IF "$(DESTDIR)" .EQS. "" THEN -
513 @{- sourcefile("VMS", "msg_install.com") -} "$(SYSTARTUP)" "{- $osslver -}"
514 @ IF "$(DESTDIR)" .NES. "" THEN -
515 @{- sourcefile("VMS", "msg_staging.com") -} -
516 "''installroot']" "''dataroot']" "$(INSTALLTOP)" "$(OPENSSLDIR)" -
517 "$(SYSTARTUP)" "{- $osslver -}"
520 spawn/nolog @ossl_installroot:[SYSTEST]openssl_ivp{- $osslver -}.com
522 uninstall : uninstall_docs uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -}
527 {- join("\n\t", map { "- DELETE $_.OLB;*" } @libs) || "@ !" -}
528 {- join("\n\t", map { "- DELETE $_.EXE;*,$_.MAP;*" } @shlibs) || "@ !" -}
531 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{htmldocs}->{man1}}) || "@ !" -}
532 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{htmldocs}->{man3}}) || "@ !" -}
533 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{htmldocs}->{man5}}) || "@ !" -}
534 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{htmldocs}->{man7}}) || "@ !" -}
535 {- join("\n\t", map { "- DELETE $_.EXE;*,$_.OPT;*" } @{$unified_info{programs}}) || "@ !" -}
536 {- join("\n\t", map { "- DELETE $_.EXE;*,$_.OPT;*" } @{$unified_info{modules}}) || "@ !" -}
537 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{scripts}}) || "@ !" -}
538 {- join("\n\t", map { "- DELETE $_;*" } @{$unified_info{depends}->{""}}) || "@ !" -}
539 {- join("\n\t", map { "- DELETE $_;*" } @generated) || "@ !" -}
540 - DELETE [...]*.MAP;*
541 - DELETE [...]*.D;*
542 - DELETE [...]*.OBJ;*,*.LIS;*
543 - DELETE []CXX$DEMANGLER_DB.;*
544 - DELETE [.VMS]openssl_startup.com;*
545 - DELETE [.VMS]openssl_shutdown.com;*
546 - DELETE []vmsconfig.pm;*
549 - DELETE [.include.openssl]configuration.h;*
550 - DELETE configdata.pm;*
551 - DELETE descrip.mms;*
554 @ ! {- output_off() if $disabled{makedepend}; "" -}
555 @ $(PERL) {- sourcefile("util", "add-depends.pl") -} "{- $config{makedep_scheme} -}"
556 @ ! {- output_on() if $disabled{makedepend}; "" -}
560 install_sw : install_dev install_engines install_modules -
563 uninstall_sw : uninstall_dev uninstall_modules uninstall_engines -
570 {- output_off() if $disabled{fips}; "" -}
573 - CREATE/DIR ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']
574 - CREATE/DIR/PROT=(S:RWED,O:RWE,G:RE,W:RE) OSSL_DATAROOT:[000000]
575 COPY/PROT=W:RE $(INSTALL_FIPSMODULES) -
576 ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']$(FIPSMODULENAME)
584 DELETE ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']$(FIPSMODULENAME);*
585 {- output_on() if $disabled{fips}; "" -}
588 - CREATE/DIR/PROT=(S:RWED,O:RWE,G:RE,W:RE) OSSL_DATAROOT:[000000]
589 IF F$SEARCH("OSSL_DATAROOT:[000000]CERTS.DIR;1") .EQS. "" THEN -
591 IF F$SEARCH("OSSL_DATAROOT:[000000]PRIVATE.DIR;1") .EQS. "" THEN -
593 IF F$SEARCH("OSSL_DATAROOT:[000000]MISC.DIR;1") .EQS. "" THEN -
597 COPY/PROT=W:R {- sourcefile("apps", "openssl-vms.cnf") -} -
598 ossl_dataroot:[000000]openssl.cnf-dist
599 IF F$SEARCH("OSSL_DATAROOT:[000000]openssl.cnf") .EQS. "" THEN -
600 COPY/PROT=W:R {- sourcefile("apps", "openssl-vms.cnf") -} -
603 COPY/PROT=W:R {- sourcefile("apps", "ct_log_list.cnf") -} -
604 ossl_dataroot:[000000]ct_log_list.cnf-dist
605 IF F$SEARCH("OSSL_DATAROOT:[000000]ct_log_list.cnf") .EQS. "" THEN -
606 COPY/PROT=W:R {- sourcefile("apps", "ct_log_list.cnf") -} -
612 - CREATE/DIR ossl_installroot:[include.openssl]
613 COPY/PROT=W:R ossl_sourceroot:[include.openssl]*.h -
617 - CREATE/DIR ossl_installroot:[LIB.'arch']
618 {- join("\n ",
620 @install_libs) -}
623 @ {- output_off() unless scalar @install_engines; "" -} !
624 @ WRITE SYS$OUTPUT "*** Installing engines"
625 - CREATE/DIR ossl_installroot:[ENGINES{- $sover_dirname.$target{pointer_size} -}.'arch']
626 {- join("\n ",
627 …map { "COPY/PROT=W:RE $_.EXE ossl_installroot:[ENGINES$sover_dirname$target{pointer_size}.'arch']"…
628 @install_engines) -}
629 @ {- output_on() unless scalar @install_engines; "" -} !
632 @ {- output_off() unless scalar @install_modules; "" -} !
634 - CREATE/DIR ossl_installroot:[MODULES{- $target{pointer_size} -}.'arch']
635 {- join("\n ",
637 @install_modules) -}
638 @ {- output_on() unless scalar @install_modules; "" -} !
643 @ {- output_off() if $disabled{shared}; "" -} !
646 - CREATE/DIR ossl_installroot:[LIB.'arch']
647 {- join("\n ",
649 @install_shlibs) -}
650 @ {- output_on() if $disabled{shared}; "" -} !
653 @ {- output_off() if $disabled{apps}; "" -} !
655 - CREATE/DIR ossl_installroot:[EXE.'arch']
656 COPY/PROT=W:RE [.APPS]openssl.EXE -
657 ossl_installroot:[EXE.'arch']openssl{- $osslver -}.EXE
660 @ ! {- output_on() if $disabled{apps}; "" -}
662 install_startup : [.VMS]openssl_startup.com [.VMS]openssl_shutdown.com -
664 - CREATE/DIR ossl_installroot:[SYS$STARTUP]
665 COPY/PROT=W:RE [.VMS]openssl_startup.com -
666 ossl_installroot:[SYS$STARTUP]openssl_startup{- $osslver -}.com
667 COPY/PROT=W:RE [.VMS]openssl_shutdown.com -
668 ossl_installroot:[SYS$STARTUP]openssl_shutdown{- $osslver -}.com
669 COPY/PROT=W:RE [.VMS]openssl_utils.com -
670 ossl_installroot:[SYS$STARTUP]openssl_utils{- $osslver -}.com
673 - CREATE/DIR ossl_installroot:[SYSTEST]
674 COPY/PROT=W:RE [.VMS]openssl_ivp.com -
675 ossl_installroot:[SYSTEST]openssl_ivp{- $osslver -}.com
677 [.VMS]openssl_startup.com : vmsconfig.pm {- sourcefile("VMS", "openssl_startup.com.in") -}
678 - CREATE/DIR [.VMS]
679 $(PERL) "-I." "-Mvmsconfig" {- sourcefile("util", "dofile.pl") -} -
680 {- sourcefile("VMS", "openssl_startup.com.in") -} -
683 [.VMS]openssl_utils.com : vmsconfig.pm {- sourcefile("VMS", "openssl_utils.com.in") -}
684 - CREATE/DIR [.VMS]
685 $(PERL) "-I." "-Mvmsconfig" {- sourcefile("util", "dofile.pl") -} -
686 {- sourcefile("VMS", "openssl_utils.com.in") -} -
689 [.VMS]openssl_shutdown.com : vmsconfig.pm {- sourcefile("VMS", "openssl_shutdown.com.in") -}
690 - CREATE/DIR [.VMS]
691 $(PERL) "-I." "-Mvmsconfig" {- sourcefile("util", "dofile.pl") -} -
692 {- sourcefile("VMS", "openssl_shutdown.com.in") -} -
695 [.VMS]openssl_ivp.com : vmsconfig.pm {- sourcefile("VMS", "openssl_ivp.com.in") -}
696 - CREATE/DIR [.VMS]
697 $(PERL) "-I." "-Mvmsconfig" {- sourcefile("util", "dofile.pl") -} -
698 {- sourcefile("VMS", "openssl_ivp.com.in") -} -
709 WRITE CONFIG " target => '","{- $config{target} -}","',"
710 WRITE CONFIG " version => '","{- $config{version} -}","',"
711 WRITE CONFIG " shlib_version => '","{- $config{shlib_version} -}","',"
712 WRITE CONFIG " shlib_major => '","{- $config{shlib_major} -}","',"
713 WRITE CONFIG " shlib_minor => '","{- $config{shlib_minor} -}","',"
718 WRITE CONFIG " pointer_size => '","{- $target{pointer_size} -}","',"
721 WRITE CONFIG " shared => '","{- $disabled{shared} -}","',"
730 - CREATE/DIR ossl_installroot:[HTML.MAN1]
731 - CREATE/DIR ossl_installroot:[HTML.MAN3]
732 - CREATE/DIR ossl_installroot:[HTML.MAN5]
733 - CREATE/DIR ossl_installroot:[HTML.MAN7]
734 {- join("\n ",
736 @{$unified_info{htmldocs}->{man1}} ),
738 @{$unified_info{htmldocs}->{man3}} ),
740 @{$unified_info{htmldocs}->{man5}} ),
742 @{$unified_info{htmldocs}->{man7}} )) -}
745 @ IF "$(INSTALLTOP)" .EQS. "" THEN -
747 @ IF "$(INSTALLTOP)" .EQS. "" THEN -
757 descrip.mms : configdata.pm {- join(" ", @{$config{build_file_templates}}) -}
766 …pm : $(SRCDIR)Configure $(SRCDIR)config.com {- join(" ", @{$config{build_infos}}, @{$config{conf_f…
767 perl configdata.pm -r
776 perl configdata.pm -r
778 {-
785 sub compute_platform_depends {
788 grep { $x eq $_ } @{$unified_info{programs}} and platform->bin($x)
789 or grep { $x eq $_ } @{$unified_info{modules}} and platform->dso($x)
790 or grep { $x eq $_ } @{$unified_info{libraries}} and platform->lib($x)
791 or platform->convertext($x); } @_;
796 sub compute_lib_depends {
801 { lib => platform->sharedlib($_) // platform->staticlib($_),
802 attrs => $unified_info{attributes}->{libraries}->{$_} }
820 # We use CRC-24 from https://tools.ietf.org/html/rfc4880#section-6,
829 sub crc24 {
852 sub make_includefile {
891 sub make_decc_include_files {
909 } elsif (-f $inprologue) {
921 } elsif (-f $inepilogue) {
935 sub generatetarget {
943 sub generatesrc {
945 my $gen0 = $args{generator}->[0];
948 my $gen_incs = join("", map { ' "-I'.$_.'"' } @{$args{generator_incs}});
949 my $deps = join(", -\n\t\t",
963 \$(PERL) $mkpod2html -i $pod -o \$\@ -t "$title" -r "$srcdoc"
967 # Man-page generator, on VMS we simply ignore man-pages
970 } elsif (platform->isdef($args{src})) {
972 # Linker script-ish generator
974 my $target = platform->def($args{src});
976 my $ord_ver = $args{intent} eq 'lib' ? ' --version $(VERSION_NUMBER)' : '';
978 $args{generator}->[1] || basename($args{product}, '.EXE');
981 ? '' : ' --case-insensitive';
984 …\$(PERL) $mkdef$ord_ver --type $args{intent} --ordinals $gen0 --name $ord_name "--OS" "VMS"$case_i…
986 } elsif (platform->isasm($args{src})
987 || platform->iscppasm($args{src})) {
995 bin => "$bin_cflags $bin_cppflags" } -> {$args{intent}};
997 my $target = platform->isasm($args{src})
998 ? platform->asm($args{src})
1022 PIPE \$(CPP) $cppflags $gen0 | -
1023 \$(PERL) "-ne" "/^#(\\s*line)?\\s*[0-9]+\\s+""/ or print" > \$\@
1028 # "dofile" generator (file.in -> file)
1035 my %perlmoduleincs = map { '"-I'.dirname($_).'"' => 1 } @perlmodules;
1041 @perlmodules = map { '"-M'.basename($_, '.pm').'"' } @perlmodules;
1046 \$(PERL)$perlmodules $dofile "-o$target{build_file}" $gen0$gen_args > \$\@
1055 $gen0 = platform->bin($gen0);
1071 sub src2obj {
1072 my $asmext = platform->asmext();
1076 (platform->isasm($x) && grep { $x eq $_ } @generated)
1077 ? platform->asm($x) : $x }
1079 my $obj = platform->obj($args{obj});
1080 my $dep = platform->dep($args{obj});
1081 my $deps = join(", -\n\t\t", @srcs, @{$args{deps}});
1089 my $forward = dirname($args{srcs}->[0]);
1098 @{$unified_info{includes_extra}->{$obj}});
1102 if ($args{attrs}->{noinst}) {
1106 bin => $bin_cflags_no_inst } -> {$args{intent}};
1111 bin => $bin_cflags } -> {$args{intent}};
1116 bin => $bin_cppflags } -> {$args{intent}};
1122 bin => $bin_asflags } -> {$args{intent}};
1130 - PURGE $obj
1138 PIPE \$(CPP) ${cflags} $srcs | -
1139 \$(PERL) -ne "/^#(\\s*line)?\\s*[0-9]+\\s+""/ or print" -
1140 > ${objd}${objn}-asm
1144 \$(AS) $asflags \$(ASOUTFLAG)$obj $obj-asm
1145 - PURGE $obj
1153 bin => [ @bin_cppincludes ] } -> {$args{intent}} },
1155 $deps .= ", -\n\t\t$incdir_filename";
1173 - PURGE $obj
1177 sub obj2shlib {
1179 my $shlibname = platform->sharedname($args{lib});
1180 my $shlib = platform->sharedlib($args{lib});
1181 my @objs = map { platform->convertext($_) }
1182 grep { platform->isobj($_) }
1184 my @defs = map { platform->convertext($_) }
1185 grep { platform->isdef($_) }
1189 my $deps = join(", -\n\t\t", @objs, @defs, map { $_->{lib} } @deps);
1199 join(",-\"\n\t", map { my $x = $_ =~ /\[/ ? $_ : "[]".$_;
1203 join("\n\t", map { my $x = $_->{lib} =~ /\[/
1204 ? $_->{lib} : "[]".$_->{lib};
1211 \$(PERL) $translatesyms_pl \$(BLDDIR)CXX\$DEMANGLER_DB. < $defs[0] > $defs[0]-translated
1212 OPEN/WRITE/SHARE=READ OPT_FILE $shlibname-components.OPT
1216 LINK ${lib_ldflags}/SHARE=\$\@ $defs[0]-translated/OPT,-
1217 $shlibname-components.OPT/OPT \$(LIB_EX_LIBS)
1218 DELETE $defs[0]-translated;*,$shlibname-components.OPT;*
1226 sub obj2dso {
1228 my $dsoname = platform->dsoname($args{module});
1229 my $dso = platform->dso($args{module});
1230 my @objs = map { platform->convertext($_) }
1231 grep { platform->isobj($_) }
1233 my @defs = map { platform->convertext($_) }
1234 grep { platform->isdef($_) }
1237 my $deps = join(", -\n\t\t", @objs, @defs, map { $_->{lib} } @deps);
1245 join(",-\"\n\t", map { my $x = $_ =~ /\[/ ? $_ : "[]".$_;
1249 join("\n\t", map { my $x = $_->{lib} =~ /\[/
1250 ? $_->{lib} : "[]".$_->{lib};
1257 OPEN/WRITE/SHARE=READ OPT_FILE $dsoname-components.OPT
1261 LINK ${dso_ldflags}/SHARE=\$\@ $defs[0]/OPT,-
1262 $dsoname-components.OPT/OPT \$(DSO_EX_LIBS)
1263 - PURGE $dsoname.EXE,$dsoname.OPT,$dsoname.MAP
1270 sub obj2lib {
1272 my $lib = platform->staticlib($args{lib});
1273 my @objs = map { platform->convertext($_) }
1274 grep { platform->isobj($_) }
1276 my $objs = join(", -\n\t\t", @objs);
1282 - PURGE $lib
1285 sub obj2bin {
1287 my $bin = platform->bin($args{bin});
1288 my $binname = platform->binname($args{bin});
1289 my @objs = map { platform->convertext($_) }
1290 grep { platform->isobj($_) }
1294 my $deps = join(", -\n\t\t", @objs, map { $_->{lib} } @deps);
1296 my $olb_count = scalar grep(m|\.OLB$|, map { $_->{lib} } @deps);
1301 …$analyse_objs = "- pipe ANALYSE/OBJECT$analyse_quals $objs | SEARCH SYS\$INPUT \"\"\"main\"\"\" ; …
1308 join(",-\"\n\t", map { my $x = $_ =~ /\[/ ? $_ : "[]".$_;
1315 my $x = $_->{lib} =~ /\[/
1316 ? $_->{lib} : "[]".$_->{lib};
1324 my $main = $_->{attrs}->{has_main}
1359 - pipe SPAWN/WAIT/NOLOG/OUT=$binname.LINKLOG -
1360 LINK ${bin_ldflags}/EXEC=\$\@ $binname.OPT/OPT \$(BIN_EX_LIBS) ; -
1363 -@ IF link_severity .EQ. 0 THEN -
1364 pipe SEARCH $binname.LINKLOG "%","-"/MATCH=AND | -
1365 SPAWN/WAIT/NOLOG/OUT=NLA0: -
1366 SEARCH SYS\$INPUT: "-W-MULDEF,"/MATCH=NOR ; -
1369 @ ! string: %SEARCH-I-NOMATCHES, no strings matched
1375 -@ IF .NOT. link_severity THEN TYPE $binname.LINKLOG
1376 -@ DELETE $binname.LINKLOG;*
1378 - PURGE $bin,$binname.OPT
1385 sub in2script {
1395 \$(PERL) "-I\$(BLDDIR)" "-Mconfigdata" $dofile -
1396 "-o$target{build_file}" $sources > $script
1402 -}