aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-14 19:04:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-14 19:04:14 +0200
commit7dd972a678cb9c91714125506f4bccf74bbe6ab6 (patch)
treef1f0b71091b723cc50bcd6b15be2a867426e245b /build
parent43f2ced624b891192bd3ee5602f25f1b278e1d45 (diff)
Support fall-back dependency tracking
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make17
1 files changed, 16 insertions, 1 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 151e53b..01267d3 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -46,12 +46,27 @@ $(error dist_prefix is not set)
endif
endif
-# Don't include dependency info for certain targets.
+# If we don't have dependency auto-generation then we need to manually
+# make sure that generated files are generated before C++ file are
+# compiler. To do this we make the object files ($2) depend in order-
+# only on generated files ($3).
#
+ifeq ($(cxx_id),generic)
+
+define include-dep
+$(if $2,$(eval $2: | $3))
+endef
+
+else
+
define include-dep
$(call -include,$1)
endef
+endif
+
+# Don't include dependency info for certain targets.
+#
ifneq ($(filter $(MAKECMDGOALS),clean disfigure dist),)
include-dep =
endif