Lines Matching +full:pkg +full:- +full:utils
4 ## {- join("\n## ", @autowarntext) -}
5 {-
11 our $makedepcmd = platform->makedepcmd();
17 # shared_target style aix-solib. In that mode, create
18 # libcrypto.so as a link-import library that inserts runtime
21 sub sharedaix { !$disabled{shared} && $target{shared_target} =~ /^aix(?!-solib$)/ }
22 sub sharedaix_solib { !$disabled{shared} && $target{shared_target} =~ /^aix-solib$/ }
24 our $sover_dirname = platform->shlib_version_as_filename();
37 $COLUMNS = int($COLUMNS) - 2; # 2 to leave space for ending ' \'
69 -}
70 PLATFORM={- $config{target} -}
71 OPTIONS={- $config{options} -}
72 CONFIGURE_ARGS=({- join(", ",quotify_l(@{$config{perlargv}})) -})
73 SRCDIR={- $config{sourcedir} -}
74 BLDDIR={- $config{builddir} -}
75 FIPSKEY={- $config{FIPSKEY} -}
77 VERSION={- "$config{full_version}" -}
78 VERSION_NUMBER={- "$config{version}" -}
79 RELEASE_DATE={- my $t = localtime;
83 # `Time::Piece->strptime(..)`.
84 eval { $t = Time::Piece->strptime($config{"release_date"}, "%d %b %Y"); } ||
87 $t->strftime("%Y-%m-%d") -}
88 MAJOR={- $config{major} -}
89 MINOR={- $config{minor} -}
90 SHLIB_VERSION_NUMBER={- $config{shlib_version} -}
91 SHLIB_TARGET={- $target{shared_target} -}
93 LIBS={- join(" \\\n" . ' ' x 5,
94 fill_lines(" ", $COLUMNS - 5,
95 map { platform->staticlib($_) // () }
96 @{$unified_info{libraries}})) -}
97 SHLIBS={- join(" \\\n" . ' ' x 7,
98 fill_lines(" ", $COLUMNS - 7,
99 map { platform->sharedlib($_) // () }
100 @{$unified_info{libraries}})) -}
101 SHLIB_INFO={- join(" \\\n" . ' ' x 11,
102 fill_lines(" ", $COLUMNS - 11,
103 map { my $x = platform->sharedlib($_);
104 my $y = platform->sharedlib_simple($_) // '';
105 my $z = platform->sharedlib_import($_) // '';
107 @{$unified_info{libraries}})) -}
108 MODULES={- join(" \\\n" . ' ' x 8,
109 fill_lines(" ", $COLUMNS - 8,
110 map { platform->dso($_) }
116 @{$unified_info{modules}})) -}
117 FIPSMODULE={- # We do some extra checking here, as there should be only one
120 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
121 && $unified_info{attributes}->{modules}->{$_}->{fips} }
124 join(" ", map { platform->dso($_) } @fipsmodules) -}
125 FIPSMODULENAME={- die "More that one FIPS module" if scalar @fipsmodules > 1;
126 join(" ", map { basename(platform->dso($_)) } @fipsmodules) -}
128 PROGRAMS={- join(" \\\n" . ' ' x 9,
129 fill_lines(" ", $COLUMNS - 9,
130 map { platform->bin($_) }
131 @{$unified_info{programs}})) -}
132 SCRIPTS={- join(" \\\n" . ' ' x 8,
133 fill_lines(" ", $COLUMNS - 8, @{$unified_info{scripts}})) -}
134 {- output_off() if $disabled{makedepend}; "" -}
135 DEPS={- join(" \\\n" . ' ' x 5,
136 fill_lines(" ", $COLUMNS - 5,
137 map { platform->isobj($_) ? platform->dep($_) : () }
138 grep { $unified_info{sources}->{$_}->[0] =~ /\.c$/ }
139 keys %{$unified_info{sources}})); -}
140 {- output_on() if $disabled{makedepend}; "" -}
141 GENERATED_MANDATORY={- join(" \\\n" . ' ' x 20,
142 fill_lines(" ", $COLUMNS - 20,
143 @{$unified_info{depends}->{""}})) -}
144 GENERATED_PODS={- # common0.tmpl provides @generated
146 fill_lines(" ", $COLUMNS - 15,
150 $unified_info{attributes}->{depends}
151 ->{$x}->{$_}->{pod} // 0
153 keys %{$unified_info{attributes}->{depends}->{$x}}
156 @generated)) -}
157 GENERATED={- # common0.tmpl provides @generated
159 fill_lines(" ", $COLUMNS - 5,
160 map { platform->convertext($_) } @generated )) -}
162 INSTALL_LIBS={-
164 fill_lines(" ", $COLUMNS - 13,
165 map { platform->staticlib($_) // () }
166 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
168 -}
169 INSTALL_SHLIBS={-
171 fill_lines(" ", $COLUMNS - 15,
172 map { platform->sharedlib($_) // () }
173 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
175 -}
176 INSTALL_SHLIB_INFO={-
178 fill_lines(" ", $COLUMNS - 19,
179 map { my $x = platform->sharedlib($_);
180 my $y = platform->sharedlib_simple($_) // '';
181 my $z = platform->sharedlib_import($_) // '';
183 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
185 -}
186 INSTALL_ENGINES={-
188 fill_lines(" ", $COLUMNS - 16,
189 map { platform->dso($_) }
190 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
191 && $unified_info{attributes}->{modules}->{$_}->{engine} }
193 -}
194 INSTALL_MODULES={-
196 fill_lines(" ", $COLUMNS - 16,
197 map { platform->dso($_) }
198 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
199 && !$unified_info{attributes}->{modules}->{$_}->{engine}
200 && !$unified_info{attributes}->{modules}->{$_}->{fips} }
202 -}
203 INSTALL_FIPSMODULE={-
205 fill_lines(" ", $COLUMNS - 16,
206 map { platform->dso($_) }
207 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
208 && $unified_info{attributes}->{modules}->{$_}->{fips} }
210 -}
212 INSTALL_PROGRAMS={-
214 fill_lines(" ", $COLUMNS - 16, map { platform->bin($_) }
215 grep { !$unified_info{attributes}->{programs}->{$_}->{noinst} }
217 -}
218 INSTALL_EXPORTERS_PKGCONFIG={-
220 fill_lines(" ", $COLUMNS - 28,
221 … grep { $unified_info{attributes}->{generate}->{$_}->{exporter} eq 'pkg-config'}
223 -}
224 INSTALL_EXPORTERS_CMAKE={-
226 fill_lines(" ", $COLUMNS - 24,
227 grep { $unified_info{attributes}->{generate}->{$_}->{exporter} eq 'cmake'}
229 -}
230 BIN_SCRIPTS={-
232 fill_lines(" ", $COLUMNS - 12,
233 map { my $x = $unified_info{attributes}->{scripts}->{$_}->{linkname};
235 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
236 && !$unified_info{attributes}->{scripts}->{$_}->{misc} }
238 -}
239 MISC_SCRIPTS={-
241 fill_lines(" ", $COLUMNS - 13,
242 map { my $x = $unified_info{attributes}->{scripts}->{$_}->{linkname};
244 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
245 && $unified_info{attributes}->{scripts}->{$_}->{misc} }
247 -}
248 IMAGEDOCS1={-
250 fill_lines(" ", $COLUMNS - 10,
251 @{$unified_info{imagedocs}->{man1}})) -}
252 IMAGEDOCS3={-
254 fill_lines(" ", $COLUMNS - 10,
255 @{$unified_info{imagedocs}->{man3}})) -}
256 IMAGEDOCS5={-
258 fill_lines(" ", $COLUMNS - 10,
259 @{$unified_info{imagedocs}->{man5}})) -}
260 IMAGEDOCS7={-
262 fill_lines(" ", $COLUMNS - 10,
263 @{$unified_info{imagedocs}->{man7}})) -}
264 HTMLDOCS1={-
266 fill_lines(" ", $COLUMNS - 10,
267 @{$unified_info{htmldocs}->{man1}})) -}
268 HTMLDOCS3={-
270 fill_lines(" ", $COLUMNS - 10,
271 @{$unified_info{htmldocs}->{man3}})) -}
272 HTMLDOCS5={-
274 fill_lines(" ", $COLUMNS - 10,
275 @{$unified_info{htmldocs}->{man5}})) -}
276 HTMLDOCS7={-
278 fill_lines(" ", $COLUMNS - 10,
279 @{$unified_info{htmldocs}->{man7}})) -}
280 MANDOCS1={-
282 fill_lines(" ", $COLUMNS - 9,
283 @{$unified_info{mandocs}->{man1}})) -}
284 MANDOCS3={-
286 fill_lines(" ", $COLUMNS - 9,
287 @{$unified_info{mandocs}->{man3}})) -}
288 MANDOCS5={-
290 fill_lines(" ", $COLUMNS - 9,
291 @{$unified_info{mandocs}->{man5}})) -}
292 MANDOCS7={-
294 fill_lines(" ", $COLUMNS - 9,
295 @{$unified_info{mandocs}->{man7}})) -}
297 APPS_OPENSSL="{- use File::Spec::Functions;
298 catfile("apps","openssl") -}"
305 # Do not edit these manually. Use Configure with --prefix or --openssldir
307 INSTALLTOP={- # $prefix is used in the OPENSSLDIR perl snippet
310 $prefix -}
311 OPENSSLDIR={- #
312 # The logic here is that if no --openssldir was given,
314 # If --openssldir was given and the value is an absolute
316 # If the value from --openssldir is a relative path,
317 # OPENSSLDIR will get $prefix with the --openssldir
327 $openssldir -}
328 LIBDIR={- our $libdir = $config{libdir};
332 file_name_is_absolute($libdir) ? "" : $libdir -}
334 libdir={- file_name_is_absolute($libdir)
335 ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -}
336 ENGINESDIR=$(libdir)/engines-{- $sover_dirname -}
337 MODULESDIR=$(libdir)/ossl-modules
343 BINDIR={- our $bindir = $config{bindir};
347 file_name_is_absolute($bindir) ? "" : $bindir -}
348 bindir={- file_name_is_absolute($bindir)
349 ? $bindir : '$(INSTALLTOP)/$(BINDIR)' -}
371 # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC
372 # gcc, then the driver will automatically translate it to -xarch=v8plus
376 CROSS_COMPILE={- $config{CROSS_COMPILE} -}
377 CC=$(CROSS_COMPILE){- $config{CC} -}
378 CXX={- $config{CXX} ? "\$(CROSS_COMPILE)$config{CXX}" : '' -}
379 CPPFLAGS={- our $cppflags1 = join(" ",
380 (map { "-D".$_} @{$config{CPPDEFINES}}),
381 (map { "-I".$_} @{$config{CPPINCLUDES}}),
382 @{$config{CPPFLAGS}}) -}
383 CFLAGS={- join(' ', @{$config{CFLAGS}}) -}
384 CXXFLAGS={- join(' ', @{$config{CXXFLAGS}}) -}
385 LDFLAGS= {- join(' ', @{$config{LDFLAGS}}) -}
386 EX_LIBS= {- join(' ', @{$config{LDLIBS}}) -}
387 OBJCOPY={- $config{OBJCOPY} -}
389 MAKEDEPEND={- $config{makedepcmd} -}
391 PERL={- $config{PERL} -}
393 AR=$(CROSS_COMPILE){- $config{AR} -}
394 ARFLAGS= {- join(' ', @{$config{ARFLAGS}}) -}
395 RANLIB={- $config{RANLIB} ? "\$(CROSS_COMPILE)$config{RANLIB}" : "true"; -}
396 RC= $(CROSS_COMPILE){- $config{RC} -}
397 RCFLAGS={- join(' ', @{$config{RCFLAGS}}) -} {- $target{shared_rcflag} -}
399 RM= rm -f
401 TAR= {- $target{TAR} || "tar" -}
402 TARFLAGS= {- $target{TARFLAGS} -}
405 NAME= $(BASENAME)-$(VERSION)
413 CNF_CPPFLAGS={- our $cppflags2 =
415 (map { "-D".$_} @{$target{defines}},
417 (map { "-I".$_} @{$target{includes}},
419 @{$config{cppflags}}) -}
420 CNF_CFLAGS={- join(' ', $target{cflags} || (),
421 @{$config{cflags}}) -}
422 CNF_CXXFLAGS={- join(' ', $target{cxxflags} || (),
423 @{$config{cxxflags}}) -}
424 CNF_LDFLAGS={- join(' ', $target{lflags} || (),
425 @{$config{lflags}}) -}
426 CNF_EX_LIBS={- join(' ', $target{ex_libs} || (),
427 @{$config{ex_libs}}) -}
435 LIB_CPPFLAGS={- our $lib_cppflags =
438 (map { '-D'.$_ }
443 (map { '-I'.quotify1($_) }
451 (map { '-D'.$_ }
455 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
456 LIB_CFLAGS={- join(' ', $target{lib_cflags} || (),
460 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
461 LIB_CXXFLAGS={- join(' ', $target{lib_cxxflags} || (),
465 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
466 LIB_LDFLAGS={- join(' ', $target{shared_ldflag} || (),
468 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
470 DSO_CPPFLAGS={- join(' ', $target{dso_cppflags} || (),
472 (map { '-D'.$_ }
477 (map { '-I'.quotify1($_) }
484 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
485 DSO_CFLAGS={- join(' ', $target{dso_cflags} || (),
489 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
490 DSO_CXXFLAGS={- join(' ', $target{dso_cxxflags} || (),
494 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
495 DSO_LDFLAGS={- join(' ', $target{dso_ldflags} || (),
499 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
501 BIN_CPPFLAGS={- join(' ', $target{bin_cppflags} || (),
502 (map { '-D'.$_ } @{$config{bin_defines} || ()}),
504 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
505 BIN_CFLAGS={- join(' ', $target{bin_cflags} || (),
507 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
508 BIN_CXXFLAGS={- join(' ', $target{bin_cxxflags} || (),
510 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
511 BIN_LDFLAGS={- join(' ', $target{bin_lflags} || (),
513 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
517 CPPFLAGS_Q={- $cppflags1 =~ s|([\\"])|\\$1|g;
521 $cppflags1 || ()) -}
523 PERLASM_SCHEME= {- $target{perlasm_scheme} -}
527 PROCESSOR= {- $config{processor} -}
542 {- dependmagic('build_sw', 'Build all the software (default target)'); -}: build_libs_nodep build_m…
543 {- dependmagic('build_libs', 'Build the libraries libssl and libcrypto'); -}: build_libs_nodep
544 {- dependmagic('build_modules', 'Build the modules (i.e. providers and engines)'); -}: build_module…
545 {- dependmagic('build_programs', 'Build the openssl executables and scripts'); -}: build_programs_n…
547 all: build_sw {- "build_docs" if !$disabled{docs}; -} ## Build software and documentation
549 @set -e; for i in $(SHLIBS); do \
550 $(OBJCOPY) --only-keep-debug $$i $$i.debug; \
551 $(OBJCOPY) --strip-debug --add-gnu-debuglink=$$i.debug $$i; \
561 …) {- join(" ",map { platform->sharedlib_simple($_) // platform->sharedlib_import($_) // platform->…
571 @ : {- output_off() if $disabled{makedepend}; "" -}
572 @echo "Warning: consider configuring with no-makedepend, because if"
575 @ : {- output_on() if $disabled{makedepend}; "" -}
584 {- dependmagic('tests', 'Run tests'); -}: build_programs_nodep build_modules_nodep link-utils
587 @ : {- output_off() if $disabled{tests}; "" -}
592 EXE_EXT={- platform->binext() -} \
594 @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
596 @ : {- output_on() if !$disabled{tests}; "" -}
598 list-tests: ## List available tests that can be invoked via "make test TESTS=<name>"
599 @ : {- output_off() if $disabled{tests}; "" -}
601 @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
603 @ : {- output_on() if !$disabled{tests}; "" -}
608 @set -e; for s in $(SHLIB_INFO); do \
610 s1=`echo "$$s" | cut -f1 -d";"`; \
611 s2=`echo "$$s" | cut -f2 -d";"`; \
612 s3=`echo "$$s" | cut -f3 -d";"`; \
613 $(ECHO) $(RM) $$s1; {- output_off() unless windowsdll(); "" -}\
616 $(RM) fuzz/$$s1; {- output_on() unless windowsdll(); "" -}\
628 $(RM) *{- platform->defext() -}
641 -find . -name '*{- platform->depext() -}' \! -name '.*' \! -type d -exec $(RM) {} \;
642 -find . -name '*{- platform->objext() -}' \! -name '.*' \! -type d -exec $(RM) {} \;
644 $(RM) tags TAGS doc-nits md-nits
645 $(RM) -r test/test-runs
647 -find . -type l \! -name '.*' -exec $(RM) {} \;
657 @: {- output_off() if $disabled{makedepend}; "" -}
658 @$(PERL) $(SRCDIR)/util/add-depends.pl "{- $makedep_scheme -}"
659 @: {- output_on() if $disabled{makedepend}; "" -}
664 …stall: install_sw install_ssldirs {- "install_docs" if !$disabled{docs}; -} {- $disabled{fips} ? "…
666 uninstall: {- "uninstall_docs" if !$disabled{docs}; -} uninstall_sw {- $disabled{fips} ? "" : "unin…
675 $(RM) -r "$(DESTDIR)$(DOCDIR)"
677 {- output_off() if $disabled{fips}; "" -}
679 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
680 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)"
681 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)"
683 @$(ECHO) "install $(INSTALL_FIPSMODULE) -> $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME)"
686 @mv -f "$(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).new" \
689 @$(ECHO) "install $(INSTALL_FIPSMODULECONF) -> $(DESTDIR)$(OPENSSLDIR)/fipsmodule.cnf"
697 {- if ($disabled{fips}) { output_on(); } else { output_off(); } "" -}
699 @$(ECHO) "The 'install_fips' target requires the 'enable-fips' option"
702 @$(ECHO) "The 'uninstall_fips' target requires the 'enable-fips' option"
703 {- output_on() if !$disabled{fips}; "" -}
707 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/certs"
708 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/private"
709 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/misc"
710 @set -e; for x in dummy $(MISC_SCRIPTS); do \
712 x1=`echo "$$x" | cut -f1 -d:`; \
713 x2=`echo "$$x" | cut -f2 -d:`; \
715 $(ECHO) "install $$x1 -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
718 mv -f "$(DESTDIR)$(OPENSSLDIR)/misc/$$fn.new" \
722 : {- output_off() unless windowsdll(); "" -}; \
723 $(ECHO) "copy $(DESTDIR)$(OPENSSLDIR)/misc/$$ln -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
725 : {- output_on() unless windowsdll();
726 output_off() if windowsdll(); "" -}; \
727 $(ECHO) "link $(DESTDIR)$(OPENSSLDIR)/misc/$$ln -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
728 ln -sf $$fn "$(DESTDIR)$(OPENSSLDIR)/misc/$$ln"; \
729 : {- output_on() if windowsdll(); "" -}; \
732 @$(ECHO) "install $(SRCDIR)/apps/openssl.cnf -> $(DESTDIR)$(OPENSSLDIR)/openssl.cnf.dist"
735 @mv -f "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf.new" "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf.dist"
736 @if [ ! -f "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf" ]; then \
737 $(ECHO) "install $(SRCDIR)/apps/openssl.cnf -> $(DESTDIR)$(OPENSSLDIR)/openssl.cnf"; \
741 @$(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.dist"
744 …@mv -f "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.new" "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.dis…
745 @if [ ! -f "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf" ]; then \
746 $(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \
752 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
754 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(INSTALLTOP)/include/openssl"
755 @ : {- output_off() if $disabled{uplink}; "" -}
756 @$(ECHO) "install $(SRCDIR)/ms/applink.c -> $(DESTDIR)$(INSTALLTOP)/include/openssl/applink.c"
759 @ : {- output_on() if $disabled{uplink}; "" -}
760 @set -e; for i in $(SRCDIR)/include/openssl/*.h \
763 $(ECHO) "install $$i -> $(DESTDIR)$(INSTALLTOP)/include/openssl/$$fn"; \
767 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(libdir)"
768 @set -e; for l in $(INSTALL_LIBS); do \
770 $(ECHO) "install $$l -> $(DESTDIR)$(libdir)/$$fn"; \
774 mv -f "$(DESTDIR)$(libdir)/$$fn.new" \
777 @ : {- output_off() if $disabled{shared}; "" -}
778 @set -e; for s in $(INSTALL_SHLIB_INFO); do \
779 s1=`echo "$$s" | cut -f1 -d";"`; \
780 s2=`echo "$$s" | cut -f2 -d";"`; \
781 s3=`echo "$$s" | cut -f3 -d";"`; \
785 : {- output_off(); output_on() unless windowsdll() or sharedaix() or sharedaix_solib(); "" -}; \
787 $(ECHO) "link $(DESTDIR)$(libdir)/$$fn2 -> $(DESTDIR)$(libdir)/$$fn1"; \
788 ln -sf $$fn1 "$(DESTDIR)$(libdir)/$$fn2"; \
790 …: {- output_off() unless windowsdll() or sharedaix() or sharedaix_solib(); output_on() if windowsd…
792 $(ECHO) "install $$s3 -> $(DESTDIR)$(libdir)/$$fn3"; \
795 mv -f "$(DESTDIR)$(libdir)/$$fn3.new" \
798 : {- output_off() if windowsdll() or sharedaix_solib(); output_on() if sharedaix(); "" -}; \
800 $(ECHO) "install $$s1 -> $$a"; \
801 if [ -f $$a ]; then ( trap "rm -rf /tmp/ar.$$$$" INT 0; \
803 cp -f $$a $$a.new; \
807 strip -X32_64 -e $$so; \
812 mv -f $$a.new $$a; \
813 : {- output_off() if sharedaix(); output_on(); "" -}; \
815 @ : {- output_on() if $disabled{shared}; "" -}
816 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(PKGCONFIGDIR)"
819 $(ECHO) "install $$e -> $(DESTDIR)$(PKGCONFIGDIR)/$$fn"; \
823 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(CMAKECONFIGDIR)"
826 $(ECHO) "install $$e -> $(DESTDIR)$(CMAKECONFIGDIR)/$$fn"; \
833 @ : {- output_off() if $disabled{uplink}; "" -}
836 @ : {- output_on() if $disabled{uplink}; "" -}
837 @set -e; for i in $(SRCDIR)/include/openssl/*.h \
843 -$(RMDIR) "$(DESTDIR)$(INSTALLTOP)/include/openssl"
844 -$(RMDIR) "$(DESTDIR)$(INSTALLTOP)/include"
845 @set -e; for l in $(INSTALL_LIBS); do \
850 @ : {- output_off() if $disabled{shared}; "" -}
851 @set -e; for s in $(INSTALL_SHLIB_INFO); do \
852 s1=`echo "$$s" | cut -f1 -d";"`; \
853 s2=`echo "$$s" | cut -f2 -d";"`; \
854 s3=`echo "$$s" | cut -f3 -d";"`; \
858 : {- output_off() if windowsdll(); "" -}; \
861 if [ -n "$$fn2" ]; then \
865 : {- output_on() if windowsdll(); "" -}{- output_off() unless windowsdll(); "" -}; \
866 if [ -n "$$fn3" ]; then \
870 : {- output_on() unless windowsdll(); "" -}; \
872 @ : {- output_on() if $disabled{shared}; "" -}
881 -$(RMDIR) "$(DESTDIR)$(PKGCONFIGDIR)"
882 -$(RMDIR) "$(DESTDIR)$(CMAKECONFIGDIR)"
883 -$(RMDIR) "$(DESTDIR)$(libdir)"
888 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
889 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(ENGINESDIR)/"
891 @set -e; for e in dummy $(INSTALL_ENGINES); do \
894 $(ECHO) "install $$e -> $(DESTDIR)$(ENGINESDIR)/$$fn"; \
897 mv -f "$(DESTDIR)$(ENGINESDIR)/$$fn.new" \
903 @set -e; for e in dummy $(INSTALL_ENGINES); do \
909 -$(RMDIR) "$(DESTDIR)$(ENGINESDIR)"
912 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
913 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)/"
915 @set -e; for e in dummy $(INSTALL_MODULES); do \
918 $(ECHO) "install $$e -> $(DESTDIR)$(MODULESDIR)/$$fn"; \
921 mv -f "$(DESTDIR)$(MODULESDIR)/$$fn.new" \
927 @set -e; for e in dummy $(INSTALL_MODULES); do \
933 -$(RMDIR) "$(DESTDIR)$(MODULESDIR)"
938 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
939 @ : {- output_off() if windowsdll(); "" -}
940 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(libdir)"
941 @ : {- output_on() if windowsdll(); output_off() unless windowsdll(); "" -}
942 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(bindir)/"
943 @ : {- output_on() unless windowsdll(); "" -}
945 @set -e; for s in dummy $(INSTALL_SHLIBS); do \
948 : {- output_off() unless windowsdll(); "" -}; \
949 $(ECHO) "install $$s -> $(DESTDIR)$(bindir)/$$fn"; \
952 mv -f "$(DESTDIR)$(bindir)/$$fn.new" \
954 : {- output_on() unless windowsdll(); "" -}{- output_off() if windowsdll(); "" -}; \
955 $(ECHO) "install $$s -> $(DESTDIR)$(libdir)/$$fn"; \
958 mv -f "$(DESTDIR)$(libdir)/$$fn.new" \
960 : {- output_on() if windowsdll(); "" -}; \
964 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
965 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(bindir)"
967 @set -e; for x in dummy $(INSTALL_PROGRAMS); do \
970 $(ECHO) "install $$x -> $(DESTDIR)$(bindir)/$$fn"; \
973 mv -f "$(DESTDIR)$(bindir)/$$fn.new" \
976 @set -e; for x in dummy $(BIN_SCRIPTS); do \
979 $(ECHO) "install $$x -> $(DESTDIR)$(bindir)/$$fn"; \
982 mv -f "$(DESTDIR)$(bindir)/$$fn.new" \
990 @set -e; for x in dummy $(INSTALL_PROGRAMS); \
997 @set -e; for x in dummy $(BIN_SCRIPTS); \
1004 -$(RMDIR) "$(DESTDIR)$(bindir)"
1008 @ : {- output_off() unless windowsdll(); "" -}
1009 @set -e; for s in dummy $(INSTALL_SHLIBS); do \
1015 @ : {- output_on() unless windowsdll(); "" -}
1019 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
1020 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man1"
1021 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man3"
1022 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man5"
1023 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man7"
1025 @set -e; for x in dummy $(MANDOCS1); do \
1028 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man1/$${fn}$(MANSUFFIX)"; \
1031 …$(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man1 $(BLDDIR)/doc/man1 $${fn}$(MA…
1033 @set -e; for x in dummy $(MANDOCS3); do \
1036 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man3/$${fn}$(MANSUFFIX)"; \
1039 …$(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man3 $(BLDDIR)/doc/man3 $${fn}$(MA…
1041 @set -e; for x in dummy $(MANDOCS5); do \
1044 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man5/$${fn}$(MANSUFFIX)"; \
1047 …$(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man5 $(BLDDIR)/doc/man5 $${fn}$(MA…
1049 @set -e; for x in dummy $(MANDOCS7); do \
1052 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man7/$${fn}$(MANSUFFIX)"; \
1055 …$(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man7 $(BLDDIR)/doc/man7 $${fn}$(MA…
1060 @set -e; for x in dummy $(MANDOCS1); do \
1065 …$(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man1 $(BLDDIR)/doc/man1 $${fn}$(…
1067 @set -e; for x in dummy $(MANDOCS3); do \
1072 …$(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man3 $(BLDDIR)/doc/man3 $${fn}$(…
1074 @set -e; for x in dummy $(MANDOCS5); do \
1079 …$(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man5 $(BLDDIR)/doc/man5 $${fn}$(…
1081 @set -e; for x in dummy $(MANDOCS7); do \
1086 …$(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man7 $(BLDDIR)/doc/man7 $${fn}$(…
1090 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
1091 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man1"
1092 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man3"
1093 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man5"
1094 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man7"
1096 @set -e; for x in dummy $(HTMLDOCS1); do \
1099 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man1/$$fn"; \
1103 @set -e; for x in dummy $(HTMLDOCS3); do \
1106 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man3/$$fn"; \
1110 @set -e; for x in dummy $(HTMLDOCS5); do \
1113 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man5/$$fn"; \
1117 @set -e; for x in dummy $(HTMLDOCS7); do \
1120 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man7/$$fn"; \
1127 @set -e; for x in dummy $(HTMLDOCS1); do \
1133 @set -e; for x in dummy $(HTMLDOCS3); do \
1139 @set -e; for x in dummy $(HTMLDOCS5); do \
1145 @set -e; for x in dummy $(HTMLDOCS7); do \
1153 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man7/img"
1154 @set -e; for x in dummy $(IMAGEDOCS7); do \
1157 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man7/img/$$fn"; \
1163 @set -e; for x in dummy $(IMAGEDOCS7); do \
1185 .PHONY: doc-nits md-nits
1186 doc-nits: build_generated_pods ## Evaluate OpenSSL documentation
1187 $(PERL) $(SRCDIR)/util/find-doc-nits -c -n -l -e -i
1195 md-nits: ## Evaluate markdown files via "mdl"
1196 mdl -s $(SRCDIR)/util/markdownlint.rb .
1205 echo splint -DLINT -posixlib -preproc -D__gnuc_va_list=void \
1206 -I. -Iinclude -Iapps/include $(CRYPTOHEADERS) $(SSLHEADERS) $(SRCS) )
1208 .PHONY: check-format
1209 check-format: ## Evaluate C code according to OpenSSL coding standards
1210 ( cd $(SRCDIR); $(PERL) util/check-format.pl \
1214 ( cd $(SRCDIR); $(PERL) VMS/VMSify-conf.pl \
1215 < apps/openssl.cnf > apps/openssl-vms.cnf )
1221 ( cd $(SRCDIR); $(PERL) crypto/objects/objects.pl -n \
1237 ( cd $(SRCDIR); sed -e '1,8d' crypto/objects/obj_compat.h >> include/openssl/obj_mac.h )
1253 ( $(PERL) -I$(BLDDIR) -Mconfigdata \
1254 $(SRCDIR)/util/dofile.pl -o Makefile \
1257 if ( test -e $(SRCDIR)/doc/build.info \
1268 rm -rf sources-tmp
1269 mkdir sources-tmp
1272 cd sources-tmp \
1273 && $$srcdir/Configure --banner=Configured enable-fips -O0 \
1274 && ./configdata.pm --query 'get_sources("providers/fips")' > sources1 \
1275 && "$(MAKE)" -sj 4 build_generated providers/fips.so \
1276 && find . -name '*.d' | xargs cat > dep1 \
1278 && $$srcdir/Configure --banner=Configured enable-fips no-asm -O0 \
1279 && ./configdata.pm --query 'get_sources("providers/fips")' > sources2 \
1280 && "$(MAKE)" -sj 4 build_generated providers/fips.so \
1281 && find . -name '*.d' | xargs cat > dep2 \
1283 | grep -v ' : \\$$' | grep -v util/providers.num \
1284 | sed -e 's/^ *//' -e 's/ *\\$$//' \
1287 | $(PERL) -p -e 's/\\\n//' \
1288 | sed -e 's/^.*: *//' -e 's/ */ /g' \
1289 | fgrep -f sources \
1293 | xargs ./configdata.pm --query 'get_sources(@ARGV)' \
1294 | $(PERL) -p -e 's/\\\n//' \
1295 | sed -e 's/\./\\\./g' -e 's/ : */:/' -e 's/^/s:/' -e 's/$$/:/' \
1297 && cat deps.raw | sed -f deps.sed > deps \
1300 cat sources-tmp/sources sources-tmp/deps \
1301 | $(PERL) -p -e 's:^ *\Q../\E:: ;' \
1302 -e 's:^\Q$(SRCDIR)/\E:: if "$(SRCDIR)" ne "." ;' \
1303 …-e 'my $$x; do { $$x = $$_; s:(^|/)((?!\Q../\E)[^/]*/)\Q..\E($$|/):$$1: } while ($$x ne $$_) ;' ; \
1314 ) | grep -v sm2p256 | sort | uniq > providers/fips.module.sources.new
1315 rm -rf sources-tmp
1317 # Set to -force to force a rebuild
1320 ( b=`pwd`; set -e; cd $(SRCDIR); \
1321 $(PERL) util/ck_errf.pl -strict -internal; \
1322 $(PERL) -I$$b util/mkerr.pl $(ERROR_REBUILD) -internal )
1323 ( b=`pwd`; set -e; cd $(SRCDIR)/engines; \
1325 $(PERL) ../util/ck_errf.pl -strict \
1326 -conf $$E `basename $$E .ec`.c; \
1327 $(PERL) -I$$b ../util/mkerr.pl $(ERROR_REBUILD) -static \
1328 -conf $$E `basename $$E .ec`.c ; \
1331 {- use File::Basename;
1375 # or one of the pre-declared internal headers, and must under no
1386 -}
1387 SRCS={-
1390 join(" \\\n" . ' ' x 5, fill_lines(" ", $COLUMNS - 5,
1392 flat (map { $unified_info{sources}->{$_} }
1394 -}
1395 CRYPTOHEADERS={- join(" \\\n" . ' ' x 14,
1396 fill_lines(" ", $COLUMNS - 14, sort keys %cryptoheaders)) -}
1397 SSLHEADERS={- join(" \\\n" . ' ' x 11,
1398 fill_lines(" ", $COLUMNS - 11, sort keys %sslheaders)) -}
1401 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1402 --ordinals $(SRCDIR)/util/libcrypto.num \
1403 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1404 --renumber \
1406 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1407 --ordinals $(SRCDIR)/util/libssl.num \
1408 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1409 --renumber \
1414 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1415 --ordinals $(SRCDIR)/util/libcrypto.num \
1416 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1418 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1419 --ordinals $(SRCDIR)/util/libssl.num \
1420 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1427 rm -f TAGS tags
1428 -( cd $(SRCDIR); util/ctags.sh )
1429 -etags `find . -name '*.[ch]' -o -name '*.pm'`
1438 | xargs ./util/fips-checksums.sh ) \
1439 > providers/fips-sources.checksums.new \
1440 && sha256sum providers/fips-sources.checksums.new \
1441 | sed -e 's|\.new||' > providers/fips.checksum.new
1443 fips-checksums: providers/fips.checksum.new
1446 cp -p providers/fips.module.sources.new $(SRCDIR)/providers/fips.module.sources
1447 cp -p providers/fips-sources.checksums.new $(SRCDIR)/providers/fips-sources.checksums
1448 cp -p providers/fips.checksum.new $(SRCDIR)/providers/fips.checksum
1450 update-fips-checksums: $(SRCDIR)/providers/fips.checksum
1452 diff-fips-checksums: fips-checksums
1453 diff -u $(SRCDIR)/providers/fips.module.sources providers/fips.module.sources.new
1454 diff -u $(SRCDIR)/providers/fips-sources.checksums providers/fips-sources.checksums.new
1455 diff -u $(SRCDIR)/providers/fips.checksum providers/fips.checksum.new
1460 (cd $(SRCDIR); ./util/mktar.sh --name='$(NAME)' --tarfile='$(TARFILE)')
1464 link-utils: $(BLDDIR)/util/opensslwrap.sh $(BLDDIR)/apps/openssl.cnf
1468 mkdir -p "$(BLDDIR)/util"; \
1469 ln -sf "../$(SRCDIR)/util/`basename "$@"`" "$(BLDDIR)/util"; \
1474 mkdir -p "$(BLDDIR)/apps"; \
1475 ln -sf "../$(SRCDIR)/apps/`basename "$@"`" "$(BLDDIR)/apps"; \
1483 {- join(" \\\n" . ' ' x 10,
1484 fill_lines(" ", $COLUMNS - 10,
1485 @{$config{build_file_templates}})) -}
1496 {- join(" \\\n" . ' ' x 15,
1497 fill_lines(" ", $COLUMNS - 15,
1499 @{$config{conf_files}})) -}
1501 $(PERL) configdata.pm -r
1510 $(PERL) configdata.pm -r
1512 {-
1521 grep { $x eq $_ } @{$unified_info{programs}} and platform->bin($x)
1522 or grep { $x eq $_ } @{$unified_info{modules}} and platform->dso($x)
1523 or grep { $x eq $_ } @{$unified_info{libraries}} and platform->lib($x)
1524 or platform->convertext($x); } @_;
1533 return map { platform->sharedlib_simple($_)
1534 // platform->sharedlib_import($_)
1535 // platform->sharedlib($_)
1536 // platform->staticlib($_)
1550 my $gen0 = $args{generator}->[0];
1553 my $gen_incs = join("", map { " -I".$_ } @{$args{generator_incs}});
1554 my $incs = join("", map { " -I".$_ } @{$args{incs}});
1555 my $defs = join("", map { " -D".$_ } @{$args{defs}});
1567 \$(PERL) \$(SRCDIR)/util/mkpod2html.pl -i "$pod" -o \$\@ -t "$title" -r "\$(SRCDIR)/doc"
1571 # Man-page generator
1578 pod2man --name=$name --section=$section\$(MANSUFFIX) --center=OpenSSL \\
1579 --date=\$(RELEASE_DATE) --release=\$(VERSION) \\
1582 } elsif (platform->isdef($args{src})) {
1584 # Linker script-ish generator
1586 my $target = platform->def($args{src});
1587 (my $mkdef_os = $target{shared_target}) =~ s|-shared$||;
1588 my $ord_ver = $args{intent} eq 'lib' ? ' --version $(VERSION_NUMBER)' : '';
1589 my $ord_name = $args{generator}->[1] || $args{product};
1592 …\$(PERL) \$(SRCDIR)/util/mkdef.pl$ord_ver --type $args{intent} --ordinals $gen0 --name $ord_name …
1594 } elsif (platform->isasm($args{src})
1595 || platform->iscppasm($args{src})) {
1604 } -> {$args{intent}};
1611 $generator = 'm4 -B 8192'.$gen_incs.' '.$gen0.$gen_args.' >'
1626 \$(CC) $incs $cppflags $defs -E $gen0 | \\
1627 \$(PERL) -ne '/^#(line)?\\s*[0-9]+/ or print' > \$@
1631 # "dofile" generator (file.in -> file)
1662 push @perlmodules, '"-M'.$m.'"' if $m;
1664 $perlmoduleincs{'"-I'.$i.'"'} = 1 if $i;
1676 \$(PERL)$perlmodules "$dofile" "-o$target{build_file}" $gen0$gen_args > \$@
1685 $gen0 = platform->bin($gen0);
1707 my $obj = platform->convertext($args{obj});
1708 my $dep = platform->dep($args{obj});
1712 my $incs = join("", map { " -I".$_ } @{$args{incs}});
1713 my $defs = join("", map { " -D".$_ } @{$args{defs}});
1723 $cmdcompile = ' -c';
1729 } -> {$args{intent}};
1732 $cmdcompile = ' -c';
1738 } -> {$args{intent}};
1741 # extension-specific rules
1745 $cmd $cmdflags -c -o \$\@ $srcs
1748 # Originally there was multi-step rule with $(CC) -E file.S
1749 # followed by $(CC) -c file.s. It compensated for one of
1755 $cmd $incs $defs $cmdflags -c -o \$\@ $srcs
1760 $cmd $incs $defs $cmdflags -MMD -MF $dep.tmp -c -o \$\@ $srcs
1763 rm -f $dep.tmp; \\
1771 $cmd $incs $defs $cmdflags $cmdcompile -o \$\@ $srcs
1775 \$(MAKEDEPEND) -f- -Y -- $incs $cmdflags -- $srcs 2>/dev/null \\
1788 if (platform->isstaticlib($_)) {
1789 push @linklibs, platform->convertext($_);
1791 my $d = "-L" . dirname($_);
1794 $l = "-l" . $l;
1801 my @objs = map { platform->convertext($_) }
1802 grep { !platform->isdef($_) }
1804 my @defs = map { platform->def($_) }
1805 grep { platform->isdef($_) }
1810 my $full = platform->sharedlib($args{lib});
1817 my $import = platform->sharedlib_import($args{lib});
1822 my $simple = platform->sharedlib_simple($args{lib});
1833 # There is at least one platform where the compiler-as-linker needs to
1846 fill_lines(' ', $COLUMNS - length($full) - 2, @argfileobjs))
1855 fill_lines(' ', $COLUMNS - length($full) - 2, @fulldeps));
1857 join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @fullobjs));
1865 rm -f $simple && \\
1871 rm -f $simple && \\
1872 ln -s $full $simple
1880 rm -f $import && \\
1893 -o $full$shared_def \\
1899 rm -f apps/$full
1900 rm -f fuzz/$full
1901 cp -p $full apps/
1902 cp -p $full fuzz/
1906 rm -f test/$full
1907 cp -p $full test/
1920 my $dso = platform->dso($args{module});
1925 if (platform->isstaticlib($_)) {
1926 push @linklibs, platform->convertext($_);
1928 my $d = "-L" . dirname($_);
1931 $l = "-l" . $l;
1938 my @objs = map { platform->convertext($_) }
1939 grep { !platform->isdef($_) }
1941 my @defs = map { platform->def($_) }
1942 grep { platform->isdef($_) }
1948 my $objs = join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @objs));
1950 fill_lines(' ', $COLUMNS - length($dso) - 2,
1956 -o $dso$shared_def \\
1963 my $lib = platform->staticlib($args{lib});
1964 my @objs = map { platform->obj($_) } @{$args{objs}};
1966 fill_lines(' ', $COLUMNS - length($lib) - 2, @objs));
1981 my $bin = platform->bin($args{bin});
1982 my @objs = map { platform->obj($_) } @{$args{objs}};
1985 fill_lines(' ', $COLUMNS - length($bin) - 2, @objs));
1990 if (platform->isstaticlib($_)) {
1991 push @linklibs, platform->convertext($_);
1993 my $d = "-L" . dirname($_);
1996 $l = "-l" . $l;
2010 my $objs = join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @objs));
2012 fill_lines(' ', $COLUMNS - length($bin) - 2,
2017 rm -f $bin
2018 \$\${LDCMD:-$cmd} $cmdflags $linkflags\$(BIN_LDFLAGS) \\
2019 -o $bin \\
2034 \$(PERL) "-I\$(BLDDIR)" -Mconfigdata "$dofile" \\
2035 "-o$target{build_file}" $sources > "$script"
2050 next unless defined($unified_info{dirinfo}->{$dir}->{products}->{$type});
2056 foreach my $prod (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
2060 …# No support to produce $type ".join(", ", @{$unified_info{dirinfo}->{$dir}->{products}->{$type}});
2068 fill_lines(' ', $COLUMNS - 8, @deps));
2076 -}