Lines Matching +full:sub +full:- +full:engines
4 ## {- join("\n## ", @autowarntext) -}
5 {-
9 our $makedepcmd = platform->makedepcmd();
11 sub windowsdll { $config{target} =~ /^(?:Cygwin|mingw)/ }
15 sub sharedaix { !$disabled{shared} && $config{target} =~ /^aix/ }
17 our $sover_dirname = platform->shlib_version_as_filename();
21 sub dependmagic {
29 $COLUMNS = int($COLUMNS) - 2; # 2 to leave space for ending ' \'
34 sub fill_lines {
61 -}
62 PLATFORM={- $config{target} -}
63 OPTIONS={- $config{options} -}
64 CONFIGURE_ARGS=({- join(", ",quotify_l(@{$config{perlargv}})) -})
65 SRCDIR={- $config{sourcedir} -}
66 BLDDIR={- $config{builddir} -}
67 FIPSKEY={- $config{FIPSKEY} -}
69 VERSION={- "$config{full_version}" -}
70 VERSION_NUMBER={- "$config{version}" -}
71 MAJOR={- $config{major} -}
72 MINOR={- $config{minor} -}
73 SHLIB_VERSION_NUMBER={- $config{shlib_version} -}
74 SHLIB_TARGET={- $target{shared_target} -}
76 LIBS={- join(" \\\n" . ' ' x 5,
77 fill_lines(" ", $COLUMNS - 5,
78 map { platform->staticlib($_) // () }
79 @{$unified_info{libraries}})) -}
80 SHLIBS={- join(" \\\n" . ' ' x 7,
81 fill_lines(" ", $COLUMNS - 7,
82 map { platform->sharedlib($_) // () }
83 @{$unified_info{libraries}})) -}
84 SHLIB_INFO={- join(" \\\n" . ' ' x 11,
85 fill_lines(" ", $COLUMNS - 11,
86 map { my $x = platform->sharedlib($_);
87 my $y = platform->sharedlib_simple($_) // '';
88 my $z = platform->sharedlib_import($_) // '';
90 @{$unified_info{libraries}})) -}
91 MODULES={- join(" \\\n" . ' ' x 8,
92 fill_lines(" ", $COLUMNS - 8,
93 map { platform->dso($_) }
99 @{$unified_info{modules}})) -}
100 FIPSMODULE={- # We do some extra checking here, as there should be only one
103 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
104 && $unified_info{attributes}->{modules}->{$_}->{fips} }
107 join(" ", map { platform->dso($_) } @fipsmodules) -}
108 FIPSMODULENAME={- die "More that one FIPS module" if scalar @fipsmodules > 1;
109 join(" ", map { basename(platform->dso($_)) } @fipsmodules) -}
111 PROGRAMS={- join(" \\\n" . ' ' x 9,
112 fill_lines(" ", $COLUMNS - 9,
113 map { platform->bin($_) }
114 @{$unified_info{programs}})) -}
115 SCRIPTS={- join(" \\\n" . ' ' x 8,
116 fill_lines(" ", $COLUMNS - 8, @{$unified_info{scripts}})) -}
117 {- output_off() if $disabled{makedepend}; "" -}
118 DEPS={- join(" \\\n" . ' ' x 5,
119 fill_lines(" ", $COLUMNS - 5,
120 map { platform->isobj($_) ? platform->dep($_) : () }
121 grep { $unified_info{sources}->{$_}->[0] =~ /\.c$/ }
122 keys %{$unified_info{sources}})); -}
123 {- output_on() if $disabled{makedepend}; "" -}
124 GENERATED_MANDATORY={- join(" \\\n" . ' ' x 20,
125 fill_lines(" ", $COLUMNS - 20,
126 @{$unified_info{depends}->{""}})) -}
127 GENERATED_PODS={- # common0.tmpl provides @generated
129 fill_lines(" ", $COLUMNS - 15,
133 $unified_info{attributes}->{depends}
134 ->{$x}->{$_}->{pod} // 0
136 keys %{$unified_info{attributes}->{depends}->{$x}}
139 @generated)) -}
140 GENERATED={- # common0.tmpl provides @generated
142 fill_lines(" ", $COLUMNS - 5,
143 map { platform->convertext($_) } @generated )) -}
145 INSTALL_LIBS={-
147 fill_lines(" ", $COLUMNS - 13,
148 map { platform->staticlib($_) // () }
149 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
151 -}
152 INSTALL_SHLIBS={-
154 fill_lines(" ", $COLUMNS - 15,
155 map { platform->sharedlib($_) // () }
156 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
158 -}
159 INSTALL_SHLIB_INFO={-
161 fill_lines(" ", $COLUMNS - 19,
162 map { my $x = platform->sharedlib($_);
163 my $y = platform->sharedlib_simple($_) // '';
164 my $z = platform->sharedlib_import($_) // '';
166 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
168 -}
169 INSTALL_ENGINES={-
171 fill_lines(" ", $COLUMNS - 16,
172 map { platform->dso($_) }
173 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
174 && $unified_info{attributes}->{modules}->{$_}->{engine} }
176 -}
177 INSTALL_MODULES={-
179 fill_lines(" ", $COLUMNS - 16,
180 map { platform->dso($_) }
181 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
182 && !$unified_info{attributes}->{modules}->{$_}->{engine}
183 && !$unified_info{attributes}->{modules}->{$_}->{fips} }
185 -}
186 INSTALL_FIPSMODULE={-
188 fill_lines(" ", $COLUMNS - 16,
189 map { platform->dso($_) }
190 grep { !$unified_info{attributes}->{modules}->{$_}->{noinst}
191 && $unified_info{attributes}->{modules}->{$_}->{fips} }
193 -}
195 INSTALL_PROGRAMS={-
197 fill_lines(" ", $COLUMNS - 16, map { platform->bin($_) }
198 grep { !$unified_info{attributes}->{programs}->{$_}->{noinst} }
200 -}
201 BIN_SCRIPTS={-
203 fill_lines(" ", $COLUMNS - 12,
204 map { my $x = $unified_info{attributes}->{scripts}->{$_}->{linkname};
206 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
207 && !$unified_info{attributes}->{scripts}->{$_}->{misc} }
209 -}
210 MISC_SCRIPTS={-
212 fill_lines(" ", $COLUMNS - 13,
213 map { my $x = $unified_info{attributes}->{scripts}->{$_}->{linkname};
215 grep { !$unified_info{attributes}->{scripts}->{$_}->{noinst}
216 && $unified_info{attributes}->{scripts}->{$_}->{misc} }
218 -}
219 IMAGEDOCS1={-
221 fill_lines(" ", $COLUMNS - 10,
222 @{$unified_info{imagedocs}->{man1}})) -}
223 IMAGEDOCS3={-
225 fill_lines(" ", $COLUMNS - 10,
226 @{$unified_info{imagedocs}->{man3}})) -}
227 IMAGEDOCS5={-
229 fill_lines(" ", $COLUMNS - 10,
230 @{$unified_info{imagedocs}->{man5}})) -}
231 IMAGEDOCS7={-
233 fill_lines(" ", $COLUMNS - 10,
234 @{$unified_info{imagedocs}->{man7}})) -}
235 HTMLDOCS1={-
237 fill_lines(" ", $COLUMNS - 10,
238 @{$unified_info{htmldocs}->{man1}})) -}
239 HTMLDOCS3={-
241 fill_lines(" ", $COLUMNS - 10,
242 @{$unified_info{htmldocs}->{man3}})) -}
243 HTMLDOCS5={-
245 fill_lines(" ", $COLUMNS - 10,
246 @{$unified_info{htmldocs}->{man5}})) -}
247 HTMLDOCS7={-
249 fill_lines(" ", $COLUMNS - 10,
250 @{$unified_info{htmldocs}->{man7}})) -}
251 MANDOCS1={-
253 fill_lines(" ", $COLUMNS - 9,
254 @{$unified_info{mandocs}->{man1}})) -}
255 MANDOCS3={-
257 fill_lines(" ", $COLUMNS - 9,
258 @{$unified_info{mandocs}->{man3}})) -}
259 MANDOCS5={-
261 fill_lines(" ", $COLUMNS - 9,
262 @{$unified_info{mandocs}->{man5}})) -}
263 MANDOCS7={-
265 fill_lines(" ", $COLUMNS - 9,
266 @{$unified_info{mandocs}->{man7}})) -}
268 APPS_OPENSSL="{- use File::Spec::Functions;
269 catfile("apps","openssl") -}"
276 # Do not edit these manually. Use Configure with --prefix or --openssldir
278 INSTALLTOP={- # $prefix is used in the OPENSSLDIR perl snippet
281 $prefix -}
282 OPENSSLDIR={- #
283 # The logic here is that if no --openssldir was given,
285 # If --openssldir was given and the value is an absolute
287 # If the value from --openssldir is a relative path,
288 # OPENSSLDIR will get $prefix with the --openssldir
298 $openssldir -}
299 LIBDIR={- our $libdir = $config{libdir};
303 file_name_is_absolute($libdir) ? "" : $libdir -}
305 libdir={- file_name_is_absolute($libdir)
306 ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -}
307 ENGINESDIR=$(libdir)/engines-{- $sover_dirname -}
308 MODULESDIR=$(libdir)/ossl-modules
331 # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC
332 # gcc, then the driver will automatically translate it to -xarch=v8plus
336 CROSS_COMPILE={- $config{CROSS_COMPILE} -}
337 CC=$(CROSS_COMPILE){- $config{CC} -}
338 CXX={- $config{CXX} ? "\$(CROSS_COMPILE)$config{CXX}" : '' -}
339 CPPFLAGS={- our $cppflags1 = join(" ",
340 (map { "-D".$_} @{$config{CPPDEFINES}}),
341 (map { "-I".$_} @{$config{CPPINCLUDES}}),
342 @{$config{CPPFLAGS}}) -}
343 CFLAGS={- join(' ', @{$config{CFLAGS}}) -}
344 CXXFLAGS={- join(' ', @{$config{CXXFLAGS}}) -}
345 LDFLAGS= {- join(' ', @{$config{LDFLAGS}}) -}
346 EX_LIBS= {- join(' ', @{$config{LDLIBS}}) -}
348 MAKEDEPEND={- $config{makedepcmd} -}
350 PERL={- $config{PERL} -}
352 AR=$(CROSS_COMPILE){- $config{AR} -}
353 ARFLAGS= {- join(' ', @{$config{ARFLAGS}}) -}
354 RANLIB={- $config{RANLIB} ? "\$(CROSS_COMPILE)$config{RANLIB}" : "true"; -}
355 RC= $(CROSS_COMPILE){- $config{RC} -}
356 RCFLAGS={- join(' ', @{$config{RCFLAGS}}) -} {- $target{shared_rcflag} -}
358 RM= rm -f
360 TAR= {- $target{TAR} || "tar" -}
361 TARFLAGS= {- $target{TARFLAGS} -}
364 NAME= $(BASENAME)-$(VERSION)
372 CNF_CPPFLAGS={- our $cppflags2 =
374 (map { "-D".$_} @{$target{defines}},
376 (map { "-I".$_} @{$target{includes}},
378 @{$config{cppflags}}) -}
379 CNF_CFLAGS={- join(' ', $target{cflags} || (),
380 @{$config{cflags}}) -}
381 CNF_CXXFLAGS={- join(' ', $target{cxxflags} || (),
382 @{$config{cxxflags}}) -}
383 CNF_LDFLAGS={- join(' ', $target{lflags} || (),
384 @{$config{lflags}}) -}
385 CNF_EX_LIBS={- join(' ', $target{ex_libs} || (),
386 @{$config{ex_libs}}) -}
394 LIB_CPPFLAGS={- our $lib_cppflags =
397 (map { '-D'.$_ }
402 (map { '-I'.quotify1($_) }
410 (map { '-D'.$_ }
414 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
415 LIB_CFLAGS={- join(' ', $target{lib_cflags} || (),
419 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
420 LIB_CXXFLAGS={- join(' ', $target{lib_cxxflags} || (),
424 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
425 LIB_LDFLAGS={- join(' ', $target{shared_ldflag} || (),
427 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
429 DSO_CPPFLAGS={- join(' ', $target{dso_cppflags} || (),
431 (map { '-D'.$_ }
436 (map { '-I'.quotify1($_) }
443 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
444 DSO_CFLAGS={- join(' ', $target{dso_cflags} || (),
448 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
449 DSO_CXXFLAGS={- join(' ', $target{dso_cxxflags} || (),
453 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
454 DSO_LDFLAGS={- join(' ', $target{dso_ldflags} || (),
458 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
460 BIN_CPPFLAGS={- join(' ', $target{bin_cppflags} || (),
461 (map { '-D'.$_ } @{$config{bin_defines} || ()}),
463 '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
464 BIN_CFLAGS={- join(' ', $target{bin_cflags} || (),
466 '$(CNF_CFLAGS)', '$(CFLAGS)') -}
467 BIN_CXXFLAGS={- join(' ', $target{bin_cxxflags} || (),
469 '$(CNF_CXXFLAGS)', '$(CXXFLAGS)') -}
470 BIN_LDFLAGS={- join(' ', $target{bin_lflags} || (),
472 '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
476 CPPFLAGS_Q={- $cppflags1 =~ s|([\\"])|\\$1|g;
480 $cppflags1 || ()) -}
482 PERLASM_SCHEME= {- $target{perlasm_scheme} -}
486 PROCESSOR= {- $config{processor} -}
499 {- dependmagic('build_sw'); -}: build_libs_nodep build_modules_nodep build_programs_nodep link-utils
500 {- dependmagic('build_libs'); -}: build_libs_nodep
501 {- dependmagic('build_modules'); -}: build_modules_nodep
502 {- dependmagic('build_programs'); -}: build_programs_nodep
520 @ : {- output_off() if $disabled{makedepend}; "" -}
521 @echo "Warning: consider configuring with no-makedepend, because if"
524 @ : {- output_on() if $disabled{makedepend}; "" -}
529 {- dependmagic('tests'); -}: build_programs_nodep build_modules_nodep link-utils
532 @ : {- output_off() if $disabled{tests}; "" -}
537 EXE_EXT={- platform->binext() -} \
539 @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
541 @ : {- output_on() if !$disabled{tests}; "" -}
543 list-tests:
544 @ : {- output_off() if $disabled{tests}; "" -}
546 @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
548 @ : {- output_on() if !$disabled{tests}; "" -}
550 install: install_sw install_ssldirs install_docs {- $disabled{fips} ? "" : "install_fips" -}
552 uninstall: uninstall_docs uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -}
555 @set -e; for s in $(SHLIB_INFO); do \
557 s1=`echo "$$s" | cut -f1 -d";"`; \
558 s2=`echo "$$s" | cut -f2 -d";"`; \
559 s3=`echo "$$s" | cut -f3 -d";"`; \
560 $(ECHO) $(RM) $$s1; {- output_off() unless windowsdll(); "" -}\
563 $(RM) fuzz/$$s1; {- output_on() unless windowsdll(); "" -}\
575 $(RM) *{- platform->defext() -}
588 -find . -name '*{- platform->depext() -}' \! -name '.*' \! -type d -exec $(RM) {} \;
589 -find . -name '*{- platform->objext() -}' \! -name '.*' \! -type d -exec $(RM) {} \;
591 $(RM) tags TAGS doc-nits md-nits
592 $(RM) -r test/test-runs
595 -find . -type l \! -name '.*' -exec $(RM) {} \;
605 @: {- output_off() if $disabled{makedepend}; "" -}
606 @$(PERL) $(SRCDIR)/util/add-depends.pl "{- $makedep_scheme -}"
607 @: {- output_on() if $disabled{makedepend}; "" -}
618 $(RM) -r "$(DESTDIR)$(DOCDIR)"
620 {- output_off() if $disabled{fips}; "" -}
622 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
623 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)"
624 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)"
626 @$(ECHO) "install $(INSTALL_FIPSMODULE) -> $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME)"
629 @mv -f "$(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).new" \
632 @$(ECHO) "install $(INSTALL_FIPSMODULECONF) -> $(DESTDIR)$(OPENSSLDIR)/fipsmodule.cnf"
640 {- if ($disabled{fips}) { output_on(); } else { output_off(); } "" -}
642 @$(ECHO) "The 'install_fips' target requires the 'enable-fips' option"
645 @$(ECHO) "The 'uninstall_fips' target requires the 'enable-fips' option"
646 {- output_on() if !$disabled{fips}; "" -}
650 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/certs"
651 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/private"
652 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/misc"
653 @set -e; for x in dummy $(MISC_SCRIPTS); do \
655 x1=`echo "$$x" | cut -f1 -d:`; \
656 x2=`echo "$$x" | cut -f2 -d:`; \
658 $(ECHO) "install $$x1 -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
661 mv -f "$(DESTDIR)$(OPENSSLDIR)/misc/$$fn.new" \
665 : {- output_off() unless windowsdll(); "" -}; \
666 $(ECHO) "copy $(DESTDIR)$(OPENSSLDIR)/misc/$$ln -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
668 : {- output_on() unless windowsdll();
669 output_off() if windowsdll(); "" -}; \
670 $(ECHO) "link $(DESTDIR)$(OPENSSLDIR)/misc/$$ln -> $(DESTDIR)$(OPENSSLDIR)/misc/$$fn"; \
671 ln -sf $$fn "$(DESTDIR)$(OPENSSLDIR)/misc/$$ln"; \
672 : {- output_on() if windowsdll(); "" -}; \
675 @$(ECHO) "install $(SRCDIR)/apps/openssl.cnf -> $(DESTDIR)$(OPENSSLDIR)/openssl.cnf.dist"
678 @mv -f "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf.new" "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf.dist"
679 @if [ ! -f "$(DESTDIR)$(OPENSSLDIR)/openssl.cnf" ]; then \
680 $(ECHO) "install $(SRCDIR)/apps/openssl.cnf -> $(DESTDIR)$(OPENSSLDIR)/openssl.cnf"; \
684 @$(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.dist"
687 @mv -f "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.new" "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf.dist"
688 @if [ ! -f "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf" ]; then \
689 $(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \
695 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
697 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(INSTALLTOP)/include/openssl"
698 @ : {- output_off() if $disabled{uplink}; "" -}
699 @$(ECHO) "install $(SRCDIR)/ms/applink.c -> $(DESTDIR)$(INSTALLTOP)/include/openssl/applink.c"
702 @ : {- output_on() if $disabled{uplink}; "" -}
703 @set -e; for i in $(SRCDIR)/include/openssl/*.h \
706 $(ECHO) "install $$i -> $(DESTDIR)$(INSTALLTOP)/include/openssl/$$fn"; \
710 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(libdir)"
711 @set -e; for l in $(INSTALL_LIBS); do \
713 $(ECHO) "install $$l -> $(DESTDIR)$(libdir)/$$fn"; \
717 mv -f "$(DESTDIR)$(libdir)/$$fn.new" \
720 @ : {- output_off() if $disabled{shared}; "" -}
721 @set -e; for s in $(INSTALL_SHLIB_INFO); do \
722 s1=`echo "$$s" | cut -f1 -d";"`; \
723 s2=`echo "$$s" | cut -f2 -d";"`; \
724 s3=`echo "$$s" | cut -f3 -d";"`; \
728 : {- output_off(); output_on() unless windowsdll() or sharedaix(); "" -}; \
730 $(ECHO) "link $(DESTDIR)$(libdir)/$$fn2 -> $(DESTDIR)$(libdir)/$$fn1"; \
731 ln -sf $$fn1 "$(DESTDIR)$(libdir)/$$fn2"; \
733 : {- output_off() unless windowsdll() or sharedaix(); output_on() if windowsdll(); "" -}; \
735 $(ECHO) "install $$s3 -> $(DESTDIR)$(libdir)/$$fn3"; \
738 mv -f "$(DESTDIR)$(libdir)/$$fn3.new" \
741 : {- output_off() if windowsdll(); output_on() if sharedaix(); "" -}; \
743 $(ECHO) "install $$s1 -> $$a"; \
744 if [ -f $$a ]; then ( trap "rm -rf /tmp/ar.$$$$" INT 0; \
746 cp -f $$a $$a.new; \
750 strip -X32_64 -e $$so; \
755 mv -f $$a.new $$a; \
756 : {- output_off() if sharedaix(); output_on(); "" -}; \
758 @ : {- output_on() if $disabled{shared}; "" -}
759 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(libdir)/pkgconfig"
760 @$(ECHO) "install libcrypto.pc -> $(DESTDIR)$(libdir)/pkgconfig/libcrypto.pc"
763 @$(ECHO) "install libssl.pc -> $(DESTDIR)$(libdir)/pkgconfig/libssl.pc"
766 @$(ECHO) "install openssl.pc -> $(DESTDIR)$(libdir)/pkgconfig/openssl.pc"
772 @ : {- output_off() if $disabled{uplink}; "" -}
775 @ : {- output_on() if $disabled{uplink}; "" -}
776 @set -e; for i in $(SRCDIR)/include/openssl/*.h \
782 -$(RMDIR) "$(DESTDIR)$(INSTALLTOP)/include/openssl"
783 -$(RMDIR) "$(DESTDIR)$(INSTALLTOP)/include"
784 @set -e; for l in $(INSTALL_LIBS); do \
789 @ : {- output_off() if $disabled{shared}; "" -}
790 @set -e; for s in $(INSTALL_SHLIB_INFO); do \
791 s1=`echo "$$s" | cut -f1 -d";"`; \
792 s2=`echo "$$s" | cut -f2 -d";"`; \
793 s3=`echo "$$s" | cut -f3 -d";"`; \
797 : {- output_off() if windowsdll(); "" -}; \
800 if [ -n "$$fn2" ]; then \
804 : {- output_on() if windowsdll(); "" -}{- output_off() unless windowsdll(); "" -}; \
805 if [ -n "$$fn3" ]; then \
809 : {- output_on() unless windowsdll(); "" -}; \
811 @ : {- output_on() if $disabled{shared}; "" -}
815 -$(RMDIR) "$(DESTDIR)$(libdir)/pkgconfig"
816 -$(RMDIR) "$(DESTDIR)$(libdir)"
821 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
822 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(ENGINESDIR)/"
823 @$(ECHO) "*** Installing engines"
824 @set -e; for e in dummy $(INSTALL_ENGINES); do \
827 $(ECHO) "install $$e -> $(DESTDIR)$(ENGINESDIR)/$$fn"; \
830 mv -f "$(DESTDIR)$(ENGINESDIR)/$$fn.new" \
835 @$(ECHO) "*** Uninstalling engines"
836 @set -e; for e in dummy $(INSTALL_ENGINES); do \
842 -$(RMDIR) "$(DESTDIR)$(ENGINESDIR)"
845 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
846 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MODULESDIR)/"
848 @set -e; for e in dummy $(INSTALL_MODULES); do \
851 $(ECHO) "install $$e -> $(DESTDIR)$(MODULESDIR)/$$fn"; \
854 mv -f "$(DESTDIR)$(MODULESDIR)/$$fn.new" \
860 @set -e; for e in dummy $(INSTALL_MODULES); do \
866 -$(RMDIR) "$(DESTDIR)$(MODULESDIR)"
871 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
872 @ : {- output_off() if windowsdll(); "" -}
873 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(libdir)"
874 @ : {- output_on() if windowsdll(); output_off() unless windowsdll(); "" -}
875 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(INSTALLTOP)/bin"
876 @ : {- output_on() unless windowsdll(); "" -}
878 @set -e; for s in dummy $(INSTALL_SHLIBS); do \
881 : {- output_off() unless windowsdll(); "" -}; \
882 $(ECHO) "install $$s -> $(DESTDIR)$(INSTALLTOP)/bin/$$fn"; \
885 mv -f "$(DESTDIR)$(INSTALLTOP)/bin/$$fn.new" \
887 : {- output_on() unless windowsdll(); "" -}{- output_off() if windowsdll(); "" -}; \
888 $(ECHO) "install $$s -> $(DESTDIR)$(libdir)/$$fn"; \
891 mv -f "$(DESTDIR)$(libdir)/$$fn.new" \
893 : {- output_on() if windowsdll(); "" -}; \
897 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
898 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(INSTALLTOP)/bin"
900 @set -e; for x in dummy $(INSTALL_PROGRAMS); do \
903 $(ECHO) "install $$x -> $(DESTDIR)$(INSTALLTOP)/bin/$$fn"; \
906 mv -f "$(DESTDIR)$(INSTALLTOP)/bin/$$fn.new" \
909 @set -e; for x in dummy $(BIN_SCRIPTS); do \
912 $(ECHO) "install $$x -> $(DESTDIR)$(INSTALLTOP)/bin/$$fn"; \
915 mv -f "$(DESTDIR)$(INSTALLTOP)/bin/$$fn.new" \
923 @set -e; for x in dummy $(INSTALL_PROGRAMS); \
930 @set -e; for x in dummy $(BIN_SCRIPTS); \
937 -$(RMDIR) "$(DESTDIR)$(INSTALLTOP)/bin"
941 @ : {- output_off() unless windowsdll(); "" -}
942 @set -e; for s in dummy $(INSTALL_SHLIBS); do \
948 @ : {- output_on() unless windowsdll(); "" -}
952 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
953 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man1"
954 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man3"
955 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man5"
956 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(MANDIR)/man7"
958 @set -e; for x in dummy $(MANDOCS1); do \
961 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man1/$${fn}$(MANSUFFIX)"; \
964 $(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man1 $(BLDDIR)/doc/man1 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man1"; \
966 @set -e; for x in dummy $(MANDOCS3); do \
969 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man3/$${fn}$(MANSUFFIX)"; \
972 $(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man3 $(BLDDIR)/doc/man3 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man3"; \
974 @set -e; for x in dummy $(MANDOCS5); do \
977 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man5/$${fn}$(MANSUFFIX)"; \
980 $(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man5 $(BLDDIR)/doc/man5 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man5"; \
982 @set -e; for x in dummy $(MANDOCS7); do \
985 $(ECHO) "install $$x -> $(DESTDIR)$(MANDIR)/man7/$${fn}$(MANSUFFIX)"; \
988 $(PERL) $(SRCDIR)/util/write-man-symlinks install $(SRCDIR)/doc/man7 $(BLDDIR)/doc/man7 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man7"; \
993 @set -e; for x in dummy $(MANDOCS1); do \
998 $(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man1 $(BLDDIR)/doc/man1 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man1"; \
1000 @set -e; for x in dummy $(MANDOCS3); do \
1005 $(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man3 $(BLDDIR)/doc/man3 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man3"; \
1007 @set -e; for x in dummy $(MANDOCS5); do \
1012 $(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man5 $(BLDDIR)/doc/man5 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man5"; \
1014 @set -e; for x in dummy $(MANDOCS7); do \
1019 $(PERL) $(SRCDIR)/util/write-man-symlinks uninstall $(SRCDIR)/doc/man7 $(BLDDIR)/doc/man7 $${fn}$(MANSUFFIX) "$(DESTDIR)$(MANDIR)/man7"; \
1023 @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
1024 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man1"
1025 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man3"
1026 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man5"
1027 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man7"
1029 @set -e; for x in dummy $(HTMLDOCS1); do \
1032 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man1/$$fn"; \
1036 @set -e; for x in dummy $(HTMLDOCS3); do \
1039 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man3/$$fn"; \
1043 @set -e; for x in dummy $(HTMLDOCS5); do \
1046 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man5/$$fn"; \
1050 @set -e; for x in dummy $(HTMLDOCS7); do \
1053 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man7/$$fn"; \
1060 @set -e; for x in dummy $(HTMLDOCS1); do \
1066 @set -e; for x in dummy $(HTMLDOCS3); do \
1072 @set -e; for x in dummy $(HTMLDOCS5); do \
1078 @set -e; for x in dummy $(HTMLDOCS7); do \
1086 @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(HTMLDIR)/man7/img"
1087 @set -e; for x in dummy $(IMAGEDOCS7); do \
1090 $(ECHO) "install $$x -> $(DESTDIR)$(HTMLDIR)/man7/img/$$fn"; \
1096 @set -e; for x in dummy $(IMAGEDOCS7); do \
1114 .PHONY: doc-nits md-nits
1115 doc-nits: build_generated_pods
1116 $(PERL) $(SRCDIR)/util/find-doc-nits -c -n -l -e
1124 md-nits:
1125 mdl -s util/markdownlint.rb .
1132 lint -DLINT $(INCLUDES) $(SRCS)
1135 ( cd $(SRCDIR); $(PERL) VMS/VMSify-conf.pl \
1136 < apps/openssl.cnf > apps/openssl-vms.cnf )
1142 ( cd $(SRCDIR); $(PERL) crypto/objects/objects.pl -n \
1158 ( cd $(SRCDIR); sed -e '1,8d' crypto/objects/obj_compat.h >> include/openssl/obj_mac.h )
1174 ( $(PERL) -I$(BLDDIR) -Mconfigdata \
1175 $(SRCDIR)/util/dofile.pl -o Makefile \
1178 if ( test -e $(SRCDIR)/doc/build.info \
1189 rm -rf sources-tmp
1190 mkdir sources-tmp
1193 cd sources-tmp \
1194 && $$srcdir/Configure --banner=Configured enable-fips -O0 \
1195 && ./configdata.pm --query 'get_sources("providers/fips")' > sources1 \
1196 && "$(MAKE)" -sj 4 build_generated providers/fips.so \
1197 && find . -name '*.d' | xargs cat > dep1 \
1199 && $$srcdir/Configure --banner=Configured enable-fips no-asm -O0 \
1200 && ./configdata.pm --query 'get_sources("providers/fips")' > sources2 \
1201 && "$(MAKE)" -sj 4 build_generated providers/fips.so \
1202 && find . -name '*.d' | xargs cat > dep2 \
1204 | grep -v ' : \\$$' | grep -v util/providers.num \
1205 | sed -e 's/^ *//' -e 's/ *\\$$//' \
1208 | $(PERL) -p -e 's/\\\n//' \
1209 | sed -e 's/^.*: *//' -e 's/ */ /g' \
1210 | fgrep -f sources \
1214 | xargs ./configdata.pm --query 'get_sources(@ARGV)' \
1215 | $(PERL) -p -e 's/\\\n//' \
1216 | sed -e 's/\./\\\./g' -e 's/ : */:/' -e 's/^/s:/' -e 's/$$/:/' \
1218 && cat deps.raw | sed -f deps.sed > deps \
1221 cat sources-tmp/sources sources-tmp/deps \
1222 | $(PERL) -p -e 's:^ *\Q../\E:: ;' \
1223 -e 's:^\Q$(SRCDIR)/\E:: if "$(SRCDIR)" ne "." ;' \
1224 -e 'my $$x; do { $$x = $$_; s:(^|/)((?!\Q../\E)[^/]*/)\Q..\E($$|/):$$1: } while ($$x ne $$_) ;' ; \
1236 rm -rf sources-tmp
1238 # Set to -force to force a rebuild
1241 ( b=`pwd`; set -e; cd $(SRCDIR); \
1242 $(PERL) util/ck_errf.pl -strict -internal; \
1243 $(PERL) -I$$b util/mkerr.pl $(ERROR_REBUILD) -internal )
1244 ( b=`pwd`; set -e; cd $(SRCDIR)/engines; \
1246 $(PERL) ../util/ck_errf.pl -strict \
1247 -conf $$E `basename $$E .ec`.c; \
1248 $(PERL) -I$$b ../util/mkerr.pl $(ERROR_REBUILD) -static \
1249 -conf $$E `basename $$E .ec`.c ; \
1252 {- use File::Basename;
1295 # or one of the pre-declared internal headers, and must under no
1306 -}
1307 CRYPTOHEADERS={- join(" \\\n" . ' ' x 14,
1308 fill_lines(" ", $COLUMNS - 14, sort keys %cryptoheaders)) -}
1309 SSLHEADERS={- join(" \\\n" . ' ' x 11,
1310 fill_lines(" ", $COLUMNS - 11, sort keys %sslheaders)) -}
1313 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1314 --ordinals $(SRCDIR)/util/libcrypto.num \
1315 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1316 --renumber \
1318 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1319 --ordinals $(SRCDIR)/util/libssl.num \
1320 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1321 --renumber \
1325 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1326 --ordinals $(SRCDIR)/util/libcrypto.num \
1327 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1329 $(PERL) $(SRCDIR)/util/mknum.pl --version $(VERSION_NUMBER) --no-warnings \
1330 --ordinals $(SRCDIR)/util/libssl.num \
1331 --symhacks $(SRCDIR)/include/openssl/symhacks.h \
1338 rm -f TAGS tags
1339 -ctags -R .
1340 -etags `find . -name '*.[ch]' -o -name '*.pm'`
1349 | xargs ./util/fips-checksums.sh ) \
1350 > providers/fips-sources.checksums.new \
1351 && sha256sum providers/fips-sources.checksums.new \
1352 | sed -e 's|\.new||' > providers/fips.checksum.new
1354 fips-checksums: providers/fips.checksum.new
1357 cp -p providers/fips.module.sources.new $(SRCDIR)/providers/fips.module.sources
1358 cp -p providers/fips-sources.checksums.new $(SRCDIR)/providers/fips-sources.checksums
1359 cp -p providers/fips.checksum.new $(SRCDIR)/providers/fips.checksum
1361 update-fips-checksums: $(SRCDIR)/providers/fips.checksum
1363 diff-fips-checksums: fips-checksums
1364 diff -u $(SRCDIR)/providers/fips.module.sources providers/fips.module.sources.new
1365 diff -u $(SRCDIR)/providers/fips-sources.checksums providers/fips-sources.checksums.new
1366 diff -u $(SRCDIR)/providers/fips.checksum providers/fips.checksum.new
1371 (cd $(SRCDIR); ./util/mktar.sh --name='$(NAME)' --tarfile='$(TARFILE)')
1375 link-utils: $(BLDDIR)/util/opensslwrap.sh $(BLDDIR)/apps/openssl.cnf
1379 mkdir -p "$(BLDDIR)/util"; \
1380 ln -sf "../$(SRCDIR)/util/`basename "$@"`" "$(BLDDIR)/util"; \
1385 mkdir -p "$(BLDDIR)/apps"; \
1386 ln -sf "../$(SRCDIR)/apps/`basename "$@"`" "$(BLDDIR)/apps"; \
1393 libcrypto.pc libssl.pc openssl.pc: Makefile $(LIBS) {- join(" ",map { platform->sharedlib_simple($_) // platform->sharedlib_import($_) // platform->sharedlib($_) // () } @{$unified_info{libraries}}) -}
1398 if [ -n "$(LIBDIR)" ]; then \
1404 echo 'enginesdir=$${libdir}/engines-{- $sover_dirname -}'; \
1405 echo 'modulesdir=$${libdir}/ossl-modules'; \
1407 echo 'Name: OpenSSL-libcrypto'; \
1410 echo 'Libs: -L$${libdir} -lcrypto'; \
1412 echo 'Cflags: -I$${includedir}' ) > libcrypto.pc
1417 if [ -n "$(LIBDIR)" ]; then \
1424 echo 'Name: OpenSSL-libssl'; \
1428 echo 'Libs: -L$${libdir} -lssl'; \
1429 echo 'Cflags: -I$${includedir}' ) > libssl.pc
1434 if [ -n "$(LIBDIR)" ]; then \
1447 {- join(" \\\n" . ' ' x 10,
1448 fill_lines(" ", $COLUMNS - 10,
1449 @{$config{build_file_templates}})) -}
1460 {- join(" \\\n" . ' ' x 15,
1461 fill_lines(" ", $COLUMNS - 15,
1463 @{$config{conf_files}})) -}
1465 $(PERL) configdata.pm -r
1474 $(PERL) configdata.pm -r
1476 {-
1482 sub compute_platform_depends {
1485 grep { $x eq $_ } @{$unified_info{programs}} and platform->bin($x)
1486 or grep { $x eq $_ } @{$unified_info{modules}} and platform->dso($x)
1487 or grep { $x eq $_ } @{$unified_info{libraries}} and platform->lib($x)
1488 or platform->convertext($x); } @_;
1493 sub compute_lib_depends {
1497 return map { platform->sharedlib_simple($_)
1498 // platform->sharedlib_import($_)
1499 // platform->sharedlib($_)
1500 // platform->staticlib($_)
1504 sub generatetarget {
1512 sub generatesrc {
1514 my $gen0 = $args{generator}->[0];
1517 my $gen_incs = join("", map { " -I".$_ } @{$args{generator_incs}});
1518 my $incs = join("", map { " -I".$_ } @{$args{incs}});
1519 my $defs = join("", map { " -D".$_ } @{$args{defs}});
1531 \$(PERL) \$(SRCDIR)/util/mkpod2html.pl -i "$pod" -o \$\@ -t "$title" -r "\$(SRCDIR)/doc"
1535 # Man-page generator
1542 pod2man --name=$name --section=$section\$(MANSUFFIX) --center=OpenSSL \\
1543 --release=\$(VERSION) $pod >\$\@
1545 } elsif (platform->isdef($args{src})) {
1547 # Linker script-ish generator
1549 my $target = platform->def($args{src});
1550 (my $mkdef_os = $target{shared_target}) =~ s|-shared$||;
1551 my $ord_ver = $args{intent} eq 'lib' ? ' --version $(VERSION_NUMBER)' : '';
1552 my $ord_name = $args{generator}->[1] || $args{product};
1555 \$(PERL) \$(SRCDIR)/util/mkdef.pl$ord_ver --type $args{intent} --ordinals $gen0 --name $ord_name --OS $mkdef_os > $target
1557 } elsif (platform->isasm($args{src})
1558 || platform->iscppasm($args{src})) {
1567 } -> {$args{intent}};
1574 $generator = 'm4 -B 8192'.$gen_incs.' '.$gen0.$gen_args.' >'
1589 \$(CC) $incs $cppflags $defs -E $gen0 | \\
1590 \$(PERL) -ne '/^#(line)?\\s*[0-9]+/ or print' > \$@
1594 # "dofile" generator (file.in -> file)
1601 my %perlmoduleincs = map { '"-I'.dirname($_).'"' => 1 } @perlmodules;
1603 @perlmodules = map { "-M".basename($_, '.pm') } @perlmodules;
1607 \$(PERL)$perlmodules "$dofile" "-o$target{build_file}" $gen0$gen_args > \$@
1616 $gen0 = platform->bin($gen0);
1636 sub src2obj {
1638 my $obj = platform->convertext($args{obj});
1639 my $dep = platform->dep($args{obj});
1643 my $incs = join("", map { " -I".$_ } @{$args{incs}});
1644 my $defs = join("", map { " -D".$_ } @{$args{defs}});
1654 $cmdcompile = ' -c';
1660 } -> {$args{intent}};
1663 $cmdcompile = ' -c';
1669 } -> {$args{intent}};
1672 # extension-specific rules
1676 $cmd $cmdflags -c -o \$\@ $srcs
1679 # Originally there was multi-step rule with $(CC) -E file.S
1680 # followed by $(CC) -c file.s. It compensated for one of
1686 $cmd $incs $defs $cmdflags -c -o \$\@ $srcs
1691 $cmd $incs $defs $cmdflags -MMD -MF $dep.tmp -MT \$\@ -c -o \$\@ $srcs
1694 rm -f $dep.tmp; \\
1702 $cmd $incs $defs $cmdflags $cmdcompile -o \$\@ $srcs
1706 \$(MAKEDEPEND) -f- -Y -- $incs $cmdflags -- $srcs 2>/dev/null \\
1714 sub obj2shlib {
1719 if (platform->isstaticlib($_)) {
1720 push @linklibs, platform->convertext($_);
1722 my $d = "-L" . dirname($_);
1725 $l = "-l" . $l;
1732 my @objs = map { platform->convertext($_) }
1733 grep { !platform->isdef($_) }
1735 my @defs = map { platform->def($_) }
1736 grep { platform->isdef($_) }
1741 my $full = platform->sharedlib($args{lib});
1746 my $import = platform->sharedlib_import($args{lib});
1751 my $simple = platform->sharedlib_simple($args{lib});
1762 # There is at least one platform where the compiler-as-linker needs to
1775 fill_lines(' ', $COLUMNS - length($full) - 2, @argfileobjs))
1784 fill_lines(' ', $COLUMNS - length($full) - 2, @fulldeps));
1786 join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @fullobjs));
1794 rm -f $simple && \\
1800 rm -f $simple && \\
1801 ln -s $full $simple
1813 -o $full$shared_def \\
1819 rm -f apps/$full
1820 rm -f fuzz/$full
1821 cp -p $full apps/
1822 cp -p $full fuzz/
1826 rm -f test/$full
1827 cp -p $full test/
1838 sub obj2dso {
1840 my $dso = platform->dso($args{module});
1845 if (platform->isstaticlib($_)) {
1846 push @linklibs, platform->convertext($_);
1848 my $d = "-L" . dirname($_);
1851 $l = "-l" . $l;
1858 my @objs = map { platform->convertext($_) }
1859 grep { !platform->isdef($_) }
1861 my @defs = map { platform->def($_) }
1862 grep { platform->isdef($_) }
1868 my $objs = join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @objs));
1870 fill_lines(' ', $COLUMNS - length($dso) - 2,
1876 -o $dso$shared_def \\
1881 sub obj2lib {
1883 my $lib = platform->staticlib($args{lib});
1884 my @objs = map { platform->obj($_) } @{$args{objs}};
1886 fill_lines(' ', $COLUMNS - length($lib) - 2, @objs));
1899 sub obj2bin {
1901 my $bin = platform->bin($args{bin});
1902 my @objs = map { platform->obj($_) } @{$args{objs}};
1905 fill_lines(' ', $COLUMNS - length($bin) - 2, @objs));
1910 if (platform->isstaticlib($_)) {
1911 push @linklibs, platform->convertext($_);
1913 my $d = "-L" . dirname($_);
1916 $l = "-l" . $l;
1930 my $objs = join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @objs));
1932 fill_lines(' ', $COLUMNS - length($bin) - 2,
1937 rm -f $bin
1938 \$\${LDCMD:-$cmd} $cmdflags $linkflags\$(BIN_LDFLAGS) \\
1939 -o $bin \\
1944 sub in2script {
1954 \$(PERL) "-I\$(BLDDIR)" -Mconfigdata "$dofile" \\
1955 "-o$target{build_file}" $sources > "$script"
1959 sub generatedir {
1970 next unless defined($unified_info{dirinfo}->{$dir}->{products}->{$type});
1976 foreach my $prod (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
1980 push @comments, "# No support to produce $type ".join(", ", @{$unified_info{dirinfo}->{$dir}->{products}->{$type}});
1988 fill_lines(' ', $COLUMNS - 8, @deps));
1996 -}