summaryrefslogtreecommitdiff
path: root/datapath/Modules.mk
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2008-05-02 15:51:08 -0700
committerBen Pfaff <blp@nicira.com>2008-05-02 15:51:08 -0700
commit53cceda7ad4a8ade4006d62a554b725964150472 (patch)
tree17963f325ba693514c4df9d9394686e6a6cf7ca1 /datapath/Modules.mk
parent3ef905e11a2448dbd9f7a493e6ac1071f827b875 (diff)
downloadopenvswitch-53cceda7ad4a8ade4006d62a554b725964150472.tar.gz
Reduce spurious recompilations for Linux 2.4 datapath.
We need object files to depend on the build directories, so that the build directories get created before we try to output files into them. But making them depend directly on the build directories means that whenever a build directory changes (including any change to the set of files inside it) all the source files get recompiled. So, instead, make them depend on dummy files inside the directories, which will only get modified if someone does it intentionally.
Diffstat (limited to 'datapath/Modules.mk')
-rw-r--r--datapath/Modules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath/Modules.mk b/datapath/Modules.mk
index c1b31b355..02970d942 100644
--- a/datapath/Modules.mk
+++ b/datapath/Modules.mk
@@ -37,3 +37,4 @@ all_sources = $(foreach module,$(all_modules),$($(module)_sources))
all_headers = $(foreach module,$(all_modules),$($(module)_headers))
all_objects = $(patsubst %.c,%.o,$(all_sources))
all_objdirs = $(addprefix $(builddir)/,$(sort $(dir $(all_objects))))
+all_dummies = $(addsuffix /.dummy,$(all_objdirs))