Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit originally by: Paul Brook <paul@codesourcery.com> Port to newer version and commit message by: Matthijs Kooijman <matthijs@stdin.nl> Instead of generating a big list of dependencies at the start, now dependency files are generated whenever a .o file is compiled. This works, since if the .o file does not exist, it should be compiled and make does not need to know about its dependencies. If the .o (and thus the .d) file does exist, the .d file contains all the dependencies used to compile the .o file. If none of those changed, the .o file does not need a recompile, but also the .d file is still accurate (in particular, the dependency list cannot change without one of the dependent .h files or the .cpp file itself changing). This helps to remove a lot of duplication in the code, since now only a single commandline is needed for both compilation and dependency generation. It will probably also run a bit faster now. Note that this commit breaks the creation of $(OBJDIR) since this "accidentally" always worked before because $(DEPFILE) was created before anything else. That will be fixed next.
- Loading branch information
4fdd176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have the OBJ_DIR fix yet, as my libs directory is no longer being created as of 0.10-5, i assume its due to this commit removing DEP_FILE ?
See issue #58 - affects MacOSX and Debian.
4fdd176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recently also noticed this. Not sure if this or another of my commits caused it, but I'll see how we can fix this properly.
4fdd176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thanks, and sorry for the tone of my comment, reading it again it sounds a bit rude, wasn't meant to!
4fdd176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! :-)