aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2013-06-13 23:05:57 +0200
committerMatthijs Kooijman <matthijs@stdin.nl>2013-06-13 23:05:57 +0200
commit4e6c776425fbaf7e653935ceddd956b45eb0b7e2 (patch)
treebf10fdb2ab81e41b05b9de0ce7c9577ad8e1da8a /examples
parentd8c357f6d6f5c15f887c8c3b5400790c71abf702 (diff)
Fix directory creation for library source files
In commit 3bce1d88 (Allow adding extra common dependencies), the way $(OBJDIR) was created changed. Instead of having some ad-hoc mkdir calls around, all relevant rules were made to depend on the directory instead. However, this change didn't take into account that the object files for libraries live instead a subdirectory of $(OBJDIR), which was no longer automatically created. This made compilation of all libraries fail, on a clean build directory. Fixing the rules to depend on $(dir $@) or $(dir %) doesn't work, since those function calls are expanded by making upon reading the file, not later when the rule is actually matched. Therefore, this commit restores the previous explicit mkdir calls for library object files. The non-library objects files, which do not live in a subdirectory, still use the dependency approach as before. Fixes: #58
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions