This command produces dependencies for several source files and write them to the standard output: gcc -M -MM file1.c file2.c file3.c
Problem appears when I try to save them to file using -MF option: gcc -M -MM -MF makefile.dep file1.c file2.c file3.c In this case gcc write dependencies for last file only (in this case for file3.c). -- Summary: -MF writes dependencies for last file only Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bugzilla at poradnik-webmastera dot com GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39080