about summary refs log tree commit diff
path: root/programs.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-28T11·01+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-28T11·01+0100
commit4e7e498ff95b553227a26fc20549bd69995a0b08 (patch)
tree3f42ff0b13437b191963408c462b28ddb169747f /programs.mk
parent7bef965d6f191efb9c671f49fd187f4214db6120 (diff)
Add variable GLOBAL_COMMON_DEPS
This is a list of dependencies on which all C/C++ object files depend.
Primarily useful for global precompiled headers.
Diffstat (limited to 'programs.mk')
-rw-r--r--programs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/programs.mk b/programs.mk
index 04ba282b2c75..d07c91448f74 100644
--- a/programs.mk
+++ b/programs.mk
@@ -57,7 +57,7 @@ define build-program
   $$(foreach obj, $$($(1)_OBJS), $$(eval $$(obj)_CXXFLAGS=$$($(1)_CXXFLAGS)))
 
   # Make each object file depend on the common dependencies.
-  $$(foreach obj, $$($(1)_OBJS), $$(eval $$(obj): $$($(1)_COMMON_DEPS)))
+  $$(foreach obj, $$($(1)_OBJS), $$(eval $$(obj): $$($(1)_COMMON_DEPS) $$(GLOBAL_COMMON_DEPS)))
 
   # Include .dep files, if they exist.
   $(1)_DEPS := $$(foreach fn, $$($(1)_OBJS), $$(call filename-to-dep, $$(fn)))