2 ## Makefile for OpenSSL
4 ## {- join("\n## ", @autowarntext) -}
6 our $objext = $target{obj_extension} || ".obj";
7 our $depext = $target{dep_extension} || ".d";
8 our $exeext = $target{exe_extension} || ".exe";
9 our $libext = $target{lib_extension} || ".lib";
10 our $shlibext = $target{shared_extension} || ".dll";
11 our $shlibextimport = $target{shared_import_extension} || ".lib";
12 our $dsoext = $target{dso_extension} || ".dll";
14 our $sover = $config{shlib_major}."_".$config{shlib_minor};
17 $target{build_scheme}->[2] eq "VC-W32" ?
18 "ProgramFiles(x86)" : "ProgramW6432";
20 $target{build_scheme}->[2] eq "VC-W32"
21 ? "CommonProgramFiles(x86)" : "CommonProgramW6432";
22 our $win_installroot =
23 defined($ENV{$win_installenv})
24 ? $win_installenv : 'ProgramFiles';
26 defined($ENV{$win_commonenv})
27 ? $win_commonenv : 'CommonProgramFiles';
29 # expand variables early
30 $win_installroot = $ENV{$win_installroot};
31 $win_commonroot = $ENV{$win_commonroot};
34 return () if $disabled{shared};
36 return $unified_info{sharednames}->{$lib} . $shlibext;
40 return () if $disabled{shared};
42 return $lib . $shlibextimport;
48 return $dso . $dsoext;
53 PLATFORM={- $config{target} -}
54 SRCDIR={- $config{sourcedir} -}
55 BLDDIR={- $config{builddir} -}
57 VERSION={- $config{version} -}
58 MAJOR={- $config{major} -}
59 MINOR={- $config{minor} -}
61 SHLIB_VERSION_NUMBER={- $config{shlib_version_number} -}
63 LIBS={- join(" ", map { $_.$libext } @{$unified_info{libraries}}) -}
64 SHLIBS={- join(" ", map { shlib($_) } @{$unified_info{libraries}}) -}
65 SHLIBPDBS={- join(" ", map { local $shlibext = ".pdb"; shlib($_) } @{$unified_info{libraries}}) -}
66 ENGINES={- join(" ", map { dso($_) } @{$unified_info{engines}}) -}
67 ENGINEPDBS={- join(" ", map { local $dsoext = ".pdb"; dso($_) } @{$unified_info{engines}}) -}
68 PROGRAMS={- join(" ", map { $_.$exeext } grep { !m|^test\\| } @{$unified_info{programs}}) -}
69 PROGRAMPDBS={- join(" ", map { $_.".pdb" } grep { !m|^test\\| } @{$unified_info{programs}}) -}
70 TESTPROGS={- join(" ", map { $_.$exeext } grep { m|^test\\| } @{$unified_info{programs}}) -}
71 SCRIPTS={- join(" ", @{$unified_info{scripts}}) -}
72 {- output_off() if $disabled{apps}; "" -}
73 BIN_SCRIPTS=$(BLDDIR)\tools\c_rehash.pl
74 MISC_SCRIPTS=$(BLDDIR)\apps\CA.pl $(BLDDIR)\apps\tsget.pl
75 {- output_on() if $disabled{apps}; "" -}
77 {- output_off() if $disabled{makedepend}; "" -}
78 DEPS={- join(" ", map { (my $x = $_) =~ s|\.o$|$depext|; $x; }
79 grep { $unified_info{sources}->{$_}->[0] =~ /\.c$/ }
80 keys %{$unified_info{sources}}); -}
81 {- output_on() if $disabled{makedepend}; "" -}
82 GENERATED_MANDATORY={- join(" ", @{$unified_info{depends}->{""}} ) -}
83 GENERATED={- join(" ",
84 ( map { (my $x = $_) =~ s|\.[sS]$|\.asm|; $x }
85 grep { defined $unified_info{generate}->{$_} }
86 map { @{$unified_info{sources}->{$_}} }
87 grep { /\.o$/ } keys %{$unified_info{sources}} ),
88 ( grep { /\.h$/ } keys %{$unified_info{generate}} )) -}
90 # Do not edit these manually. Use Configure with --prefix or --openssldir
91 # to change this! Short explanation in the top comment in Configure
92 INSTALLTOP_dev={- # $prefix is used in the OPENSSLDIR perl snippet
94 use File::Spec::Functions qw(:DEFAULT splitpath);
95 our $prefix = $config{prefix} || "$win_installroot\\OpenSSL";
96 our ($prefix_dev, $prefix_dir, $prefix_file) =
97 splitpath($prefix, 1);
99 INSTALLTOP_dir={- $prefix_dir -}
101 # The logic here is that if no --openssldir was given,
102 # OPENSSLDIR will get the value from $prefix plus "/ssl".
103 # If --openssldir was given and the value is an absolute
104 # path, OPENSSLDIR will get its value without change.
105 # If the value from --openssldir is a relative path,
106 # OPENSSLDIR will get $prefix with the --openssldir
107 # value appended as a subdirectory.
109 use File::Spec::Functions qw(:DEFAULT splitpath);
111 $config{openssldir} ?
112 (file_name_is_absolute($config{openssldir}) ?
114 : catdir($prefix, $config{openssldir}))
115 : "$win_commonroot\\SSL";
116 our ($openssldir_dev, $openssldir_dir, $openssldir_file) =
117 splitpath($openssldir, 1);
119 OPENSSLDIR_dir={- $openssldir_dir -}
120 LIBDIR={- our $libdir = $config{libdir} || "lib";
122 ENGINESDIR_dev={- use File::Spec::Functions qw(:DEFAULT splitpath);
123 our $enginesdir = catdir($prefix,$libdir,"engines-$sover");
124 our ($enginesdir_dev, $enginesdir_dir, $enginesdir_file) =
125 splitpath($enginesdir, 1);
127 ENGINESDIR_dir={- $enginesdir_dir -}
128 !IF "$(DESTDIR)" != ""
129 INSTALLTOP=$(DESTDIR)$(INSTALLTOP_dir)
130 OPENSSLDIR=$(DESTDIR)$(OPENSSLDIR_dir)
131 ENGINESDIR=$(DESTDIR)$(ENGINESDIR_dir)
133 INSTALLTOP=$(INSTALLTOP_dev)$(INSTALLTOP_dir)
134 OPENSSLDIR=$(OPENSSLDIR_dev)$(OPENSSLDIR_dir)
135 ENGINESDIR=$(ENGINESDIR_dev)$(ENGINESDIR_dir)
139 CFLAGS={- join(" ",(map { "-D".$_} @{$target{defines}}, @{$config{defines}})) -} {- join(" ", quotify_l("-DENGINESDIR=\"$enginesdir\"", "-DOPENSSLDIR=\"$openssldir\"")) -} {- $target{cflags} -} {- $config{cflags} -}
140 COUTFLAG={- $target{coutflag} || "/Fo" -}
141 RC={- $target{rc} || "rc" -}
142 RCOUTFLAG={- $target{rcoutflag} || "/fo" -}
143 LD={- $target{ld} || "link" -}
144 LDFLAGS={- $target{lflags} -}
145 LDOUTFLAG={- $target{loutflag} || "/out:" -}
146 EX_LIBS={- $target{ex_libs} -}
147 LIB_CFLAGS={- join(" ", $target{lib_cflags}, $target{shared_cflag}) || "" -}
148 LIB_LDFLAGS={- $target{shared_ldflag} || "" -}
149 DSO_CFLAGS={- join(" ", $target{dso_cflags}, $target{shared_cflag}) || "" -}
150 DSO_LDFLAGS={- join(" ", $target{dso_lflags}, $target{shared_ldflag}) || "" -}
151 BIN_CFLAGS={- $target{bin_cflags} -}
152 BIN_LDFLAGS={- $target{bin_lflags} -}
154 PERL={- $config{perl} -}
157 ARFLAGS= {- $target{arflags} -}
158 AROUTFLAG={- $target{aroutflag} || "/out:" -}
161 MTFLAGS= {- $target{mtflags} -}
162 MTINFLAG={- $target{mtinflag} || "-manifest " -}
163 MTOUTFLAG={- $target{mtoutflag} || "-outputresource:" -}
166 ASFLAGS={- $target{asflags} -}
167 ASOUTFLAG={- $target{asoutflag} -}
168 PERLASM_SCHEME= {- $target{perlasm_scheme} -}
170 PROCESSOR= {- $config{processor} -}
172 # The main targets ###################################################
174 all: build_generated \
175 build_libs_nodep build_engines_nodep build_apps_nodep depend
177 build_libs: build_generated build_libs_nodep depend
178 build_libs_nodep: $(LIBS) {- join(" ",map { shlib_import($_) } @{$unified_info{libraries}}) -}
179 build_engines: build_generated build_engines_nodep depend
180 build_engines_nodep: $(ENGINES)
181 build_apps: build_generated build_apps_nodep depend
182 build_apps_nodep: $(PROGRAMS) $(SCRIPTS)
183 build_tests: build_generated build_tests_nodep depend
184 build_tests_nodep: $(TESTPROGS)
186 build_generated: $(GENERATED_MANDATORY)
189 tests: build_generated \
190 build_tests_nodep build_apps_nodep build_engines_nodep depend
191 @rem {- output_off() if $disabled{tests}; "" -}
195 "$(PERL)" "$(SRCDIR)\test\run_tests.pl" $(TESTS)
196 @rem {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
197 @echo "Tests are not supported with your chosen Configure options"
198 @rem {- output_on() if !$disabled{tests}; "" -}
201 @rem {- output_off() if $disabled{tests}; "" -}
202 @set SRCTOP=$(SRCDIR)
203 @"$(PERL)" "$(SRCDIR)\test\run_tests.pl" list
204 @rem {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
205 @echo "Tests are not supported with your chosen Configure options"
206 @rem {- output_on() if !$disabled{tests}; "" -}
208 install: install_sw install_ssldirs install_docs
210 uninstall: uninstall_docs uninstall_sw
213 "$(PERL)" -e "map { m/(.*)\.dll$$/; unlink glob """$$1.*"""; } @ARGV" $(SHLIBS)
214 "$(PERL)" -e "map { m/(.*)\.dll$$/; unlink glob """apps/$$1.*"""; } @ARGV" $(SHLIBS)
215 "$(PERL)" -e "map { m/(.*)\.dll$$/; unlink glob """test/$$1.*"""; } @ARGV" $(SHLIBS)
217 -del /Q ossl_static.pdb
220 -del /Q /F $(PROGRAMS) $(TESTPROGS) $(ENGINES) $(SCRIPTS)
221 -del /Q /F $(GENERATED)
226 -del /Q /S /F engines\*.ilk
227 -del /Q /S /F engines\*.lib
228 -del /Q /S /F apps\*.lib
229 -del /Q /S /F engines\*.manifest
230 -del /Q /S /F apps\*.manifest
231 -del /Q /S /F test\*.manifest
234 -del /Q /F configdata.pm
239 # Install helper targets #############################################
241 install_sw: all install_dev install_engines install_runtime
243 uninstall_sw: uninstall_runtime uninstall_engines uninstall_dev
245 install_docs: install_html_docs
247 uninstall_docs: uninstall_html_docs
250 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)\certs"
251 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)\private"
252 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)\misc"
253 @"$(PERL)" "$(SRCDIR)\util\copy.pl" "$(SRCDIR)\apps\openssl.cnf" \
255 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(MISC_SCRIPTS) \
259 @if "$(INSTALLTOP)"=="" ( echo INSTALLTOP should not be empty & exit 1 )
260 @echo *** Installing development files
261 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\include\openssl"
262 @"$(PERL)" "$(SRCDIR)\util\copy.pl" "$(SRCDIR)\include\openssl\*.h" \
263 "$(INSTALLTOP)\include\openssl"
264 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(BLDDIR)\include\openssl\*.h \
265 "$(INSTALLTOP)\include\openssl"
266 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\$(LIBDIR)"
267 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(LIBS) \
268 "$(INSTALLTOP)\$(LIBDIR)"
269 @if "$(SHLIBS)"=="" \
270 "$(PERL)" "$(SRCDIR)\util\copy.pl" ossl_static.pdb \
271 "$(INSTALLTOP)\$(LIBDIR)"
276 @if "$(INSTALLTOP)"=="" ( echo INSTALLTOP should not be empty & exit 1 )
277 @echo *** Installing engines
278 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(ENGINESDIR)"
279 @if not "$(ENGINES)"=="" \
280 "$(PERL)" "$(SRCDIR)\util\copy.pl" $(ENGINES) "$(ENGINESDIR)"
281 @if not "$(ENGINES)"=="" \
282 "$(PERL)" "$(SRCDIR)\util\copy.pl" $(ENGINEPDBS) "$(ENGINESDIR)"
287 @if "$(INSTALLTOP)"=="" ( echo INSTALLTOP should not be empty & exit 1 )
288 @echo *** Installing runtime files
289 @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\bin"
290 @if not "$(SHLIBS)"=="" \
291 "$(PERL)" "$(SRCDIR)\util\copy.pl" $(SHLIBS) "$(INSTALLTOP)\bin"
292 @if not "$(SHLIBS)"=="" \
293 "$(PERL)" "$(SRCDIR)\util\copy.pl" $(SHLIBPDBS) \
295 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(PROGRAMS) \
297 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(PROGRAMPDBS) \
299 @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(BIN_SCRIPTS) \
305 "$(PERL)" "$(SRCDIR)\util\process_docs.pl" \
306 "--destdir=$(INSTALLTOP)\html" --type=html
310 # Building targets ###################################################
312 configdata.pm: "{- $config{build_file_template} -}" "$(SRCDIR)\Configurations\common.tmpl" "$(SRCDIR)\Configure" {- join(" ", map { '"'.$_.'"' } @{$config{build_infos}}) -}
313 @echo "Detected changed: $?"
314 @echo "Reconfiguring..."
315 "$(PERL)" "$(SRCDIR)\Configure" reconf
316 @echo "**************************************************"
318 @echo "*** Please run the same make command again ***"
320 @echo "**************************************************"
325 use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs/;
327 # Helper function to figure out dependencies on libraries
328 # It takes a list of library names and outputs a list of dependencies
329 sub compute_lib_depends {
330 if ($disabled{shared}) {
331 return map { $_.$libext } @_;
333 return map { shlib_import($_) } @_;
338 (my $target = $args{src}) =~ s/\.[sS]$/.asm/;
339 my $generator = '"'.join('" "', @{$args{generator}}).'"';
340 my $generator_incs = join("", map { " -I \"$_\"" } @{$args{generator_incs}});
341 my $incs = join("", map { " /I \"$_\"" } @{$args{incs}});
342 my $deps = @{$args{deps}} ?
343 '"'.join('" "', @{$args{generator_deps}}, @{$args{deps}}).'"' : '';
345 if ($target !~ /\.asm$/) {
346 if ($args{generator}->[0] =~ m|^.*\.in$|) {
347 my $dofile = abs2rel(rel2abs(catfile($config{sourcedir},
348 "util", "dofile.pl")),
349 rel2abs($config{builddir}));
351 $target: "$args{generator}->[0]" $deps
352 "\$(PERL)" "-I\$(BLDDIR)" -Mconfigdata "$dofile" \\
353 "-o$target{build_file}" $generator > \$@
357 $target: "$args{generator}->[0]" $deps
358 "\$(PERL)"$generator_incs $generator > \$@
362 if ($args{generator}->[0] =~ /\.pl$/) {
363 $generator = '"$(PERL)"'.$generator_incs.' '.$generator;
364 } elsif ($args{generator}->[0] =~ /\.S$/) {
367 die "Generator type for $src unknown: $generator\n";
370 if (defined($generator)) {
371 # If the target is named foo.S in build.info, we want to
372 # end up generating foo.s in two steps.
373 if ($args{src} =~ /\.S$/) {
375 $target: "$args{generator}->[0]" $deps
378 \$(CC) $incs \$(CFLAGS) /EP /C \$@.S > \$@.i && move /Y \$@.i \$@
384 $target: "$args{generator}->[0]" $deps
390 $target: "$args{generator}->[0]" $deps
391 \$(CC) $incs \$(CFLAGS) /EP /C "$args{generator}->[0]" > \$@.i && move /Y \$@.i \$@
398 my $obj = $args{obj};
399 my @srcs = map { (my $x = $_) =~ s/\.s$/.asm/; $x
400 } ( @{$args{srcs}} );
401 my $srcs = '"'.join('" "', @srcs).'"';
402 my $deps = '"'.join('" "', @srcs, @{$args{deps}}).'"';
403 my $incs = join("", map { ' /I "'.$_.'"' } @{$args{incs}});
404 unless ($disabled{zlib}) {
405 if ($withargs{zlib_include}) {
406 $incs .= ' /I "'.$withargs{zlib_include}.'"';
409 my $ecflags = { lib => '$(LIB_CFLAGS)',
410 dso => '$(DSO_CFLAGS)',
411 bin => '$(BIN_CFLAGS)' } -> {$args{intent}};
412 my $makedepprog = $config{makedepprog};
413 if ($srcs[0] =~ /\.asm$/) {
416 \$(AS) \$(ASFLAGS) \$(ASOUTFLAG)\$\@ $srcs
419 return <<"EOF" if (!$disabled{makedepend});
421 \$(CC) \$(CFLAGS) $ecflags$inc /Zs /showIncludes $srcs 2>&1 | \\
422 "\$(PERL)" -n << > $obj$depext
424 s/^Note: including file: *//;
425 \$\$collect{\$\$_} = 1;
426 END { print '$obj$objext: ',join(" ", sort keys \%collect),"\\n" }
428 $obj$objext: $obj$depext
429 \$(CC) $incs \$(CFLAGS) $ecflags -c \$(COUTFLAG)\$\@ @<<
433 return <<"EOF" if ($disabled{makedepend});
435 \$(CC) $incs \$(CFLAGS) $ecflags -c \$(COUTFLAG)\$\@ $srcs
439 # On Unix, we build shlibs from static libs, so we're ignoring the
440 # object file array. We *know* this routine is only called when we've
441 # configure 'shared'.
444 my $lib = $args{lib};
445 my $shlib = $args{shlib};
446 (my $mkdef_key = $lib) =~ s/^lib//i;
447 my $objs = join("\n", map { $_.$objext } @{$args{objs}});
448 my $linklibs = join("",
449 map { "\n$_" } compute_lib_depends(@{$args{deps}}));
451 (map { $_.$objext } @{$args{objs}}),
452 compute_lib_depends(@{$args{deps}}));
453 my $ordinalsfile = defined($args{ordinals}) ? $args{ordinals}->[1] : "";
454 my $mkdef_pl = abs2rel(rel2abs(catfile($config{sourcedir},
455 "util", "mkdef.pl")),
456 rel2abs($config{builddir}));
457 my $mkrc_pl = abs2rel(rel2abs(catfile($config{sourcedir},
459 rel2abs($config{builddir}));
460 my $target = shlib_import($lib);
462 $target: $deps "$ordinalsfile" "$mkdef_pl"
463 "\$(PERL)" "$mkdef_pl" "$mkdef_key" 32 > $shlib.def
464 "\$(PERL)" -i.tmp -pe "s|^LIBRARY\\s+${mkdef_key}32|LIBRARY $shlib|;" $shlib.def
466 "\$(PERL)" "$mkrc_pl" $shlib$shlibext > $shlib.rc
467 \$(RC) \$(RCOUTFLAG)$shlib.res $shlib.rc
468 IF EXIST $shlib$shlibext.manifest DEL /F /Q $shlib$shlibext.manifest
469 \$(LD) \$(LDFLAGS) \$(LIB_LDFLAGS) \\
470 /implib:\$@ \$(LDOUTFLAG)$shlib$shlibext /def:$shlib.def @<< || (DEL /Q \$(\@B).* $shlib.* && EXIT 1)
471 $objs $shlib.res$linklibs \$(EX_LIBS)
473 IF EXIST $shlib$shlibext.manifest \\
474 \$(MT) \$(MTFLAGS) \$(MTINFLAG) $shlib$shlibext.manifest \$(MTOUTFLAG)$shlib$shlibext
475 IF EXIST apps\\$shlib$shlibext DEL /Q /F apps\\$shlib$shlibext
476 IF EXIST test\\$shlib$shlibext DEL /Q /F test\\$shlib$shlibext
477 COPY $shlib$shlibext apps
478 COPY $shlib$shlibext test
483 my $dso = $args{lib};
484 my $dso_n = basename($dso);
485 my $objs = join("\n", map { $_.$objext } @{$args{objs}});
486 my $linklibs = join("",
487 map { "\n$_" } compute_lib_depends(@{$args{deps}}));
489 (map { $_.$objext } @{$args{objs}}),
490 compute_lib_depends(@{$args{deps}}));
493 IF EXIST $dso$dsoext.manifest DEL /F /Q $dso$dsoext.manifest
494 \$(LD) \$(LDFLAGS) \$(DSO_LDFLAGS) \$(LDOUTFLAG)$dso$dsoext /def:<< @<<
500 $objs$linklibs \$(EX_LIBS)
502 IF EXIST $dso$dsoext.manifest \\
503 \$(MT) \$(MTFLAGS) \$(MTINFLAG) $dso$dsoext.manifest \$(MTOUTFLAG)$dso$dsoext
507 # Because static libs and import libs are both named the same in native
508 # Windows, we can't have both. We skip the static lib in that case,
509 # as the shared libs are what we use anyway.
510 return "" unless $disabled{"shared"};
513 my $lib = $args{lib};
514 my $objs = join("\n", map { $_.$objext } @{$args{objs}});
515 my $deps = join(" ", map { $_.$objext } @{$args{objs}});
518 \$(AR) \$(ARFLAGS) \$(AROUTFLAG)$lib$libext @<<
525 my $bin = $args{bin};
526 my $objs = join("\n", map { $_.$objext } @{$args{objs}});
527 my $linklibs = join("",
528 map { "\n$_" } compute_lib_depends(@{$args{deps}}));
530 (map { $_.$objext } @{$args{objs}}),
531 compute_lib_depends(@{$args{deps}}));
534 IF EXIST $bin$exeext.manifest DEL /F /Q $bin$exeext.manifest
535 \$(LD) \$(LDFLAGS) \$(BIN_LDFLAGS) \$(LDOUTFLAG)$bin$exeext @<<
536 $objs setargv.obj$linklibs \$(EX_LIBS)
538 IF EXIST $bin$exeext.manifest \\
539 \$(MT) \$(MTFLAGS) \$(MTINFLAG) $bin$exeext.manifest \$(MTOUTFLAG)$bin$exeext
544 my $script = $args{script};
545 my $sources = '"'.join('" "', @{$args{sources}}).'"';
546 my $dofile = abs2rel(rel2abs(catfile($config{sourcedir},
547 "util", "dofile.pl")),
548 rel2abs($config{builddir}));
551 "\$(PERL)" "-I\$(BLDDIR)" -Mconfigdata "$dofile" \\
552 "-o$target{build_file}" $sources > "$script"
557 my $dir = $args{dir};
558 my @deps = map { s|\.o$|$objext|; $_ } @{$args{deps}};
560 my %extinfo = ( dso => $dsoext,
564 foreach my $type (("dso", "lib", "bin", "script")) {
565 next unless defined($unified_info{dirinfo}->{$dir}->{products}->{$type});
566 # For lib object files, we could update the library. However,
567 # LIB on Windows doesn't work that way, so we won't create any
568 # actions for it, and the dependencies are already taken care of.
569 if ($type ne "lib") {
570 foreach my $prod (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
571 if (dirname($prod) eq $dir) {
572 push @deps, $prod.$extinfo{$type};
574 push @actions, "\t@rem No support to produce $type ".join(", ", @{$unified_info{dirinfo}->{$dir}->{products}->{$type}});
580 my $deps = join(" ", @deps);
581 my $actions = join("\n", "", @actions);
583 $args{dir} $args{dir}\\ : $deps$actions
586 "" # Important! This becomes part of the template result.