wined3d: Recognize the SM4 constant buffer register type.
[wine/wine-gecko.git] / tools / make_makefiles
blobf23706c56a337aa9ec8ad968624c4902985b1ac9
1 #!/usr/bin/perl -w
3 # Build the auto-generated parts of the Wine makefiles.
5 # Copyright 2006 Alexandre Julliard
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 use strict;
24 # Make rules files
25 my %makerules =
27 "MAKE_RULES" => "Make.rules",
28 "MAKE_DLL_RULES" => "dlls/Makedll.rules",
29 "MAKE_IMPLIB_RULES" => "dlls/Makeimplib.rules",
30 "MAKE_TEST_RULES" => "dlls/Maketest.rules",
31 "MAKE_PROG_RULES" => "programs/Makeprog.rules",
34 # Programs that we want to install in the bin directory too
35 my %bin_install =
37 "msiexec" => 1,
38 "notepad" => 1,
39 "regedit" => 1,
40 "regsvr32" => 1,
41 "wineboot" => 1,
42 "winecfg" => 1,
43 "wineconsole" => 1,
44 "winedbg" => 1,
45 "winefile" => 1,
46 "winemine" => 1,
47 "winepath" => 1,
50 # Programs that we don't want to install at all
51 my %dont_install =
53 "cmdlgtst" => 1,
54 "view" => 1,
55 "winetest" => 1,
58 # Default patterns for top-level .gitignore
59 my @ignores = (
60 "*.[oa]",
61 "*.ok",
62 "*.res",
63 "*.so",
64 "/autom4te.cache",
65 "/config.cache",
66 "/config.log",
67 "/config.status",
68 "/TAGS",
69 "/tags",
70 "Makefile",
71 "dlldata.c",
72 "dlls/*/*.def",
73 "dlls/*/tests/*crosstest.exe",
74 "dlls/*/tests/testlist.c",
75 "include/config.h",
76 "include/stamp-h",
77 "programs/winetest/*_test.exe",
78 "programs/winetest/*_test.rc",
79 "programs/winetest/build.rc",
82 # Source files and their resulting target to ignore
83 my @ignore_srcs = (
84 [ 'BISON_SRCS', '\.y', '.tab.c' ],
85 [ 'BISON_SRCS', '\.y', '.tab.h' ],
86 [ 'LEX_SRCS', '\.l', '.yy.c' ],
87 [ 'MC_SRCS', '\.mc', '.mc.rc' ],
88 [ 'IDL_TLB_SRCS', '\.idl', '.tlb' ],
89 [ 'IDL_H_SRCS', '\.idl', '.h' ],
90 [ 'IDL_C_SRCS', '\.idl', '.h' ],
91 [ 'IDL_I_SRCS', '\.idl', '.h' ],
92 [ 'IDL_P_SRCS', '\.idl', '.h' ],
93 [ 'IDL_S_SRCS', '\.idl', '.h' ],
94 [ 'IDL_C_SRCS', '\.idl', '_c.c' ],
95 [ 'IDL_I_SRCS', '\.idl', '_i.c' ],
96 [ 'IDL_P_SRCS', '\.idl', '_p.c' ],
97 [ 'IDL_S_SRCS', '\.idl', '_s.c' ],
100 my %exported_wine_headers = (
101 "wine/debug.h" => 1,
102 "wine/exception.h" => 1,
103 "wine/library.h" => 1,
104 "wine/unicode.h" => 1,
105 "wine/itss.idl" => 1,
106 "wine/svcctl.idl" => 1,
109 my %private_idl_headers = (
110 "axcore.idl" => 1,
111 "axextend.idl" => 1,
112 "dbinit.idl" => 1,
113 "dbprop.idl" => 1,
114 "dbs.idl" => 1,
115 "devenum.idl" => 1,
116 "dyngraph.idl" => 1,
117 "vmrender.idl" => 1,
118 "wine/wined3d.idl" => 1,
119 "wine/winedxgi.idl" => 1,
122 my %ignored_source_files = (
123 "dlls/wineps.drv/afm2c.c" => 1,
124 "dlls/wineps.drv/mkagl.c" => 1,
125 "programs/winetest/dist.rc" => 1,
128 my (@all_files, @makefiles, %makefiles);
130 sub dirname($)
132 my $ret = shift;
133 return "" unless $ret =~ /\//;
134 $ret =~ s!/[^/]*$!!;
135 return $ret;
138 # update a file if changed
139 sub update_file($)
141 my $file = shift;
142 my $ret = !(-f $file) || system "cmp $file $file.new >/dev/null";
143 if (!$ret)
145 unlink "$file.new";
147 else
149 rename "$file.new", "$file";
150 print "$file updated\n";
151 if ($file eq "configure.ac")
153 system "autoconf";
154 print "configure updated\n";
157 return $ret;
160 # replace some lines in a file between two markers
161 sub replace_in_file($$$@)
163 my $file = shift;
164 my $start = shift;
165 my $end = shift;
167 open NEW_FILE, ">$file.new" or die "cannot create $file.new";
169 if (defined($start))
171 open OLD_FILE, "$file" or die "cannot open $file";
172 while (<OLD_FILE>)
174 last if /$start/;
175 print NEW_FILE $_;
179 print NEW_FILE @_;
181 if (defined($end))
183 my $skip=1;
184 while (<OLD_FILE>)
186 print NEW_FILE $_ unless $skip;
187 $skip = 0 if /$end/;
191 close OLD_FILE if defined($start);
192 close NEW_FILE;
193 return update_file($file);
196 # replace a variable in a makefile
197 sub replace_makefile_variable($$)
199 my ($file, $var) = @_;
200 my $make = $makefiles{$file};
202 return unless defined ${$make}{"=$var"};
204 my @values = @{${$make}{"=$var"}};
205 ${$make}{$var} = \@values;
207 open NEW_FILE, ">$file.in.new" or die "cannot create $file.in.new";
209 open OLD_FILE, "$file.in" or die "cannot open $file.in";
210 while (<OLD_FILE>)
212 if (/^\s*($var\s+)=/)
214 # try to preserve formatting
215 my $prefix = $1;
216 my $multiline = /\\$/ || (@values > 1);
217 while (/\\$/)
219 $_ = <OLD_FILE>;
220 last unless $_;
222 if ($multiline)
224 print NEW_FILE "$var = \\\n\t" . join(" \\\n\t", sort @values) . "\n";
226 else
228 print NEW_FILE "$prefix= @values\n";
230 next;
232 print NEW_FILE $_;
234 close OLD_FILE;
235 close NEW_FILE;
236 return update_file("$file.in");
239 # parse the specified makefile to identify the rules file
240 sub parse_makefile($)
242 my $file = shift;
243 my %make;
245 ($make{"=dir"} = $file) =~ s/[^\/]+$//;
247 open MAKE, "$file.in" or die "cannot open $file.in\n";
249 while (<MAKE>)
251 chomp;
252 next if (/^\s*#/);
253 while (/\\$/) { chop; $_ .= <MAKE>; chomp; } # merge continued lines
254 next if (/^\s*$/);
256 if (/^\@(MAKE.*RULES)\@/)
258 my $var = $1;
259 $make{"=rules"} = $makerules{$var};
260 next;
262 if (/^\s*(MODULE|IMPORTLIB|TESTDLL)\s*=\s*(.*)/)
264 $make{$1} = $2;
265 next;
267 if (/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|MC_SRCS|RC_SRCS|SVG_SRCS|C_SRCS16|RC_SRCS16|SPEC_SRCS16|EXTRA_OBJS16|MANPAGES|PROGRAMS)\s*=\s*(.*)/)
269 my @list = split(/\s+/, $2);
270 $make{$1} = \@list;
271 next;
274 return %make;
277 # assign source files to their respective makefile
278 sub assign_sources_to_makefiles()
280 foreach my $file (@all_files)
282 next if defined $ignored_source_files{$file};
283 my $dir = dirname( $file );
285 while ($dir && !defined $makefiles{"$dir/Makefile"}) { $dir = dirname( $dir ); }
286 next unless $dir;
288 die "no makefile found for $file\n" unless defined $makefiles{"$dir/Makefile"};
290 my $make = $makefiles{"$dir/Makefile"};
291 my $basename = substr( $file, length($dir) + 1 );
293 if ($basename =~ /\.c$/) { push @{${$make}{"=C_SRCS"}}, $basename; }
294 elsif ($basename =~ /\.l$/) { push @{${$make}{"=LEX_SRCS"}}, $basename; }
295 elsif ($basename =~ /\.y$/) { push @{${$make}{"=BISON_SRCS"}}, $basename; }
296 elsif ($basename =~ /\.rc$/) { push @{${$make}{"=RC_SRCS"}}, $basename; }
297 elsif ($basename =~ /\.rc$/) { push @{${$make}{"=RC_SRCS"}}, $basename; }
298 elsif ($basename =~ /\.svg$/) { push @{${$make}{"=SVG_SRCS"}}, $basename; }
302 ################################################################
303 # update the makefile list in configure.ac
305 sub update_makefiles(@)
307 my (@lines);
309 foreach my $var (sort { $makerules{$a} cmp $makerules{$b}; } keys %makerules)
311 my $file = $makerules{$var};
312 my %make = %{$makefiles{$file}};
313 my $rules = $make{"=rules"} ? ",[$make{\"=rules\"}]" : "";
314 push @lines, "WINE_CONFIG_MAKERULES([$file],[$var]$rules)\n";
316 push @lines, "\n";
318 foreach my $file (sort @_)
320 my %make = %{$makefiles{$file}};
321 my $rules = $make{"=rules"};
322 my $args = "";
323 if ($rules eq $makerules{"MAKE_DLL_RULES"})
325 $args = ",[dlls],[ALL_DLL_DIRS]";
326 $args .= ",[enable_win16]" if $make{"MODULE"} =~ /(16|\.vxd)$/;
328 elsif ($rules eq $makerules{"MAKE_IMPLIB_RULES"}) { $args = ",[dlls],[ALL_IMPLIB_DIRS]"; }
329 elsif ($rules eq $makerules{"MAKE_TEST_RULES"}) { $args = ",[dlls],[ALL_TEST_DIRS],[enable_tests]"; }
330 elsif ($rules eq $makerules{"MAKE_PROG_RULES"})
332 (my $name = $file) =~ s/^programs\/(.*)\/Makefile/$1/;
333 $args = ",[programs],[ALL_PROGRAM_DIRS";
334 $args .= ",ALL_PROGRAM_INSTALL_DIRS" unless $dont_install{$name};
335 $args .= ",ALL_PROGRAM_BIN_INSTALL_DIRS" if $bin_install{$name};
336 $args .= "]";
337 $args .= ",[enable_win16]" if $make{"MODULE"} =~ /16$/;
339 elsif ($file =~ /^[^\/]*\/Makefile$/) { $args = ",[],[ALL_TOP_DIRS]"; }
340 push @lines, "WINE_CONFIG_MAKEFILE([$file],[$rules]$args)\n";
343 # update the source variables in all the makefiles
345 foreach my $file (sort @_)
347 my %make = %{$makefiles{$file}};
349 replace_makefile_variable( $file, "LEX_SRCS" );
350 replace_makefile_variable( $file, "BISON_SRCS" );
351 replace_makefile_variable( $file, "MC_SRCS" );
352 replace_makefile_variable( $file, "SVG_SRCS" );
353 replace_makefile_variable( $file, "C_SRCS" ) unless defined $make{"C_SRCS16"};
354 replace_makefile_variable( $file, "RC_SRCS" ) unless defined $make{"RC_SRCS16"};
357 push @lines, "\ndnl Build dependencies for test files compiled into winetest\n";
358 replace_in_file( "configure.ac", '^WINE_CONFIG_MAKERULES', '^dnl Build dependencies for test files compiled into winetest$', @lines);
362 ################################################################
363 # process ignore targets for generic source files
365 sub update_ignores(@)
367 my @ignores;
369 foreach my $file (sort @_)
371 my %makefile = %{$makefiles{$file}};
372 my @list;
374 foreach my $src (@ignore_srcs)
376 my @pattern = @{$src};
377 next unless defined $makefile{$pattern[0]};
378 push @list, map { (my $ret = $_) =~ s/$pattern[1]$/$pattern[2]/; $ret; } @{$makefile{$pattern[0]}};
380 foreach my $f (@list)
382 push @ignores, $makefile{"=dir"} . $f unless $f =~ /\$\(.*\)/; # skip make variables
385 return @ignores;
388 ################################################################
389 # update dlls/Makefile.in
391 sub update_dlls(@)
393 my (%directories, %importlibs, %static_implibs, %staticlib_dirs, %altnames);
394 my $text = "";
395 my @ignores = ();
397 foreach my $make (@_)
399 my %makefile = %{$makefiles{$make}};
400 next if ($makefile{"=rules"} eq $makerules{"MAKE_TEST_RULES"});
402 next unless defined $makefile{"MODULE"};
403 my $module = $makefile{"MODULE"};
404 (my $dir = $makefile{"=dir"}) =~ s/^dlls\/(.*)\//$1/;
406 if ($makefile{"=rules"} eq $makerules{"MAKE_IMPLIB_RULES"})
408 $staticlib_dirs{$module} = $dir;
409 die "invalid module $module in dir $staticlib_dirs{$module}\n" if "$staticlib_dirs{$module}" ne $module;
411 else
413 die "invalid module $module" unless $module =~ /\./;
414 (my $mod = $module) =~ s/\.dll$//;
415 die "invalid directory $dir for module $module\n" unless $mod eq $dir;
416 $directories{$module} = $dir;
419 if (defined $makefile{"IMPORTLIB"})
421 if ($makefile{"IMPORTLIB"} =~ /^([a-zA-Z0-9_.]+)/)
423 $importlibs{$module} = $1;
425 else
427 die "invalid importlib name $makefile{IMPORTLIB} in $make";
431 $static_implibs{$module} = 1 if defined $makefile{"IMPLIB_SRCS"};
433 if (defined $makefile{"SPEC_SRCS16"})
435 my @list = map { $_ =~ s/\.spec$//; $_ .= ".dll" unless $_ =~ /\./; $_; } @{$makefile{"SPEC_SRCS16"}};
436 $altnames{$module} = \@list;
438 if (defined $makefile{"EXTRA_OBJS16"})
440 foreach my $obj (@{$makefile{"EXTRA_OBJS16"}})
442 if ($obj =~ /^(.*\.(exe|mod))\.o/) { push @{$altnames{$module}}, $1; }
447 # output the list of 16-bit files
449 my @targets16 = ();
450 foreach my $mod (sort keys %directories)
452 next unless defined $altnames{$mod};
453 foreach my $i (sort @{$altnames{$mod}})
455 push @targets16, $i . "16";
458 $text .= "# 16-bit dlls\n\n";
459 $text .= "WIN16_FILES = \\\n";
460 $text .= "\t" . join( " \\\n\t", sort @targets16 ) . "\n\n";
461 $text .= "\@MAKE_RULES\@\n\n";
463 # output the all: target
465 $text .= "# Main target\n\n";
466 $text .= "all: \$(BUILDSUBDIRS) \@WIN16_FILES\@\n\n";
468 # output the lib name -> directory rules
470 $text .= "# Placeholders for 16-bit libraries\n\n";
471 foreach my $mod (sort keys %directories)
473 next unless defined $altnames{$mod};
474 $text .= sprintf "%s:\n", join(" ", map { $_ . "16"; } sort @{$altnames{$mod}});
475 $text .= sprintf "\techo \"%s\" >\$\@\n\n", $mod;
478 # output the import libraries rules
480 $text .= "# Import libraries\n\n";
481 $text .= "STATIC_IMPLIBEXT = \$(IMPLIBEXT:def=def.a)\n\n";
483 my @lib_symlinks = ();
484 foreach my $mod (sort keys %importlibs)
486 my $dir = $directories{$mod};
487 my $lib = $importlibs{$mod};
488 if ($lib ne $dir) { push @lib_symlinks, $mod; }
490 $text .= "IMPORT_SYMLINKS =";
491 foreach my $mod (sort @lib_symlinks)
493 $text .= sprintf " \\\n\tlib%s.\$(IMPLIBEXT)", $importlibs{$mod};
496 $text .= "\n\nIMPORT_LIBS = \\\n\t\$(IMPORT_SYMLINKS)";
497 foreach my $mod (sort keys %staticlib_dirs)
499 $text .= sprintf " \\\n\t%s/lib%s.a", $staticlib_dirs{$mod}, $mod;
501 foreach my $mod (sort keys %importlibs)
503 $text .= " \\\n\t$directories{$mod}/lib$importlibs{$mod}.\$(IMPLIBEXT)";
504 next unless defined $static_implibs{$mod};
505 $text .= " \\\n\t$directories{$mod}/lib$importlibs{$mod}.\$(STATIC_IMPLIBEXT)";
507 $text .= "\n\nCROSS_IMPLIBS =";
508 foreach my $mod (sort @lib_symlinks)
510 $text .= sprintf " \\\n\tlib%s.a", $importlibs{$mod};
512 foreach my $mod (sort keys %importlibs)
514 next if defined $static_implibs{$mod};
515 $text .= " \\\n\t$directories{$mod}/lib$importlibs{$mod}.a";
517 $text .= "\n\n";
518 $text .= "\$(TESTSUBDIRS:%=%/__crosstest__): \$(CROSS_IMPLIBS)\n\n";
519 $text .= "implib: \$(IMPORT_LIBS)\n\n";
520 $text .= "testsubdirs: \$(TESTSUBDIRS)\n\n";
521 $text .= ".PHONY: implib testsubdirs\n\n";
523 foreach my $mod (sort keys %importlibs)
525 my $dir = $directories{$mod};
526 my $lib = $importlibs{$mod};
527 my $spec = $mod;
528 $spec =~ s/\.dll$//;
529 if (defined($static_implibs{$mod}))
531 $text .= sprintf "%s/lib%s.def: %s/%s.spec \$(WINEBUILD)\n", $dir, $lib, $dir, $spec;
532 $text .= sprintf "\t\@cd %s && \$(MAKE) lib%s.def\n\n", $dir, $lib;
533 $text .= sprintf "%s/lib%s.\$(STATIC_IMPLIBEXT): dummy\n", $dir, $lib, $dir, $spec;
534 $text .= sprintf "\t\@cd %s && \$(MAKE) lib%s.\$(STATIC_IMPLIBEXT)\n\n", $dir, $lib;
536 else
538 $text .= sprintf "%s/lib%s.def %s/lib%s.a: %s/%s.spec \$(WINEBUILD)\n",
539 $dir, $lib, $dir, $lib, $dir, $spec;
540 $text .= sprintf "\t\@cd %s && \$(MAKE) `basename \$\@`\n\n", $dir;
543 foreach my $mod (sort @lib_symlinks)
545 my $dir = $directories{$mod};
546 my $lib = "lib" . $importlibs{$mod};
547 $text .= sprintf "%s.a: %s/%s.a\n", $lib, $dir, $lib;
548 $text .= sprintf "\t\$(RM) \$@ && \$(LN_S) %s/%s.a \$@\n\n", $dir, $lib;
549 $text .= sprintf "%s.def: %s/%s.def\n", $lib, $dir, $lib;
550 $text .= sprintf "\t\$(RM) \$@ && \$(LN_S) %s/%s.def \$@\n\n", $dir, $lib;
553 $text .= "\$(BUILDSUBDIRS): \$(IMPORT_LIBS)\n";
554 $text .= "\$(INSTALLSUBDIRS:%=%/__install__) \$(INSTALLSUBDIRS:%=%/__install-lib__): \$(IMPORT_LIBS)\n\n";
556 # output the inter-dll dependencies and rules
558 $text .= "# Map library name to the corresponding directory\n\n";
560 foreach my $mod (sort keys %staticlib_dirs)
562 $text .= sprintf "%s/lib%s.a: %s\n", $staticlib_dirs{$mod}, $mod, $staticlib_dirs{$mod};
564 $text .= "\n# Misc rules\n";
566 replace_in_file( "dlls/Makefile.in",
567 '^# 16-bit dlls',
568 '^# Misc rules',
569 $text );
571 # .gitignore file
573 foreach my $mod (sort @lib_symlinks)
575 push @ignores, "dlls/lib$importlibs{$mod}.def";
577 foreach my $mod (sort keys %directories)
579 next unless defined $altnames{$mod};
580 push @ignores, map { "dlls/" . $_ . "16"; } @{$altnames{$mod}};
583 return @ignores;
587 ################################################################
588 # update include/Makefile.in
590 sub update_includes()
592 my (@h_srcs, @private_idl_srcs, @public_idl_srcs, @tlb_srcs, %subdirs);
593 my @includes = map { (my $ret = $_) =~ s/^include\///; $ret; } grep /^include\//, @all_files;
594 foreach my $incl (@includes)
596 if ($incl =~ /(.*)\//) { $subdirs{$1} = 1; }
597 next if ($incl =~ /\.in$/);
598 if ($incl =~ /^wine\// && !$exported_wine_headers{$incl})
600 if ($private_idl_headers{$incl}) { push @private_idl_srcs, $incl; }
601 next;
603 if ($incl =~ /stdole2\.idl$/) { push @tlb_srcs, $incl; }
604 elsif ($private_idl_headers{$incl}) { push @h_srcs, $incl; }
605 elsif ($incl =~ /\.h$/) { push @h_srcs, $incl; }
606 elsif ($incl =~ /\.rh$/) { push @h_srcs, $incl; }
607 elsif ($incl =~ /\.inl$/) { push @h_srcs, $incl; }
608 elsif ($incl =~ /\.idl$/) { push @public_idl_srcs, $incl; }
609 else { die "unknown file $incl in include dir"; }
611 replace_in_file( "include/Makefile.in", '^PRIVATE_IDL_H_SRCS\s*=', '^INSTALLDIRS',
612 "PRIVATE_IDL_H_SRCS = \\\n\t",
613 join( " \\\n\t", sort @private_idl_srcs ),
614 "\n\nPUBLIC_IDL_H_SRCS = \\\n\t",
615 join( " \\\n\t", sort @public_idl_srcs ),
616 "\n\nIDL_TLB_SRCS = \\\n\t",
617 join( " \\\n\t", sort @tlb_srcs ),
618 "\n\nSRCDIR_INCLUDES = \\\n\t\$(IDL_TLB_SRCS) \\\n\t\$(PUBLIC_IDL_H_SRCS) \\\n\t",
619 join( " \\\n\t", sort @h_srcs ),
620 "\n\nEXTRASUBDIRS = ",
621 join( " ", sort keys %subdirs ),
622 "\n\nINSTALLDIRS = \\\n" );
623 return map { s/(.*)\.idl$/include\/$1.h/; $_; } @public_idl_srcs, @private_idl_srcs;
627 ################################################################
628 # update the main .gitignore
630 sub update_gitignore(@)
632 my @ignores = values %makerules;
634 foreach my $make (@makefiles)
636 my %makefile = %{$makefiles{$make}};
637 my $dir = $makefile{"=dir"};
638 if (defined $makefile{"MANPAGES"})
640 push @ignores, map { $dir . $_; } @{$makefile{"MANPAGES"}};
642 if (defined $makefile{"PROGRAMS"})
644 push @ignores, map { s/\$\(EXEEXT\)//; $dir . $_; } @{$makefile{"PROGRAMS"}};
648 # prepend a slash to paths that don't have one
649 @ignores = map { $_ =~ s/^([^\/]+)$/\/$1/; $_; } @ignores;
651 # get rid of duplicates
652 my %ignores = ();
653 foreach my $i (@ignores, @_) { $ignores{$i} = 1; }
655 replace_in_file( ".gitignore", undef, undef,
656 "# Automatically generated by make_makefiles; DO NOT EDIT!!\n",
657 join("\n", sort keys %ignores), "\n" );
661 die "needs to be run from a git checkout" unless -d ".git";
663 @all_files = split /\0/, `git ls-files -c -z`;
664 @makefiles = map { my $ret = $_; $ret =~ s/\.in$//; $ret; } grep /Makefile.in$/, @all_files;
666 foreach my $file (sort values %makerules, @makefiles)
668 my %make = parse_makefile( $file );
669 $makefiles{$file} = \%make;
672 assign_sources_to_makefiles();
673 update_makefiles( @makefiles );
674 push @ignores, update_includes();
675 push @ignores, update_ignores( @makefiles );
676 push @ignores, update_dlls( sort grep /^dlls\//, @makefiles );
677 update_gitignore( @ignores );