summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-10 21:05:45 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-10 22:16:21 +0200
commit3e5cce81e77fae6af91fcf8de11dafe9c8b1744d (patch)
tree0577acdc968c3351c49cbe854699462bc65e1eaa /common.mak
parent28e1c97916b026c8785f54ec591718379b251bbb (diff)
build: remove duplicates from order-only directory prerequisite list
This reduces startup latency for make invocations, which is especially noticeable on systems that are slow or have slow I/O, like Windows.
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.mak b/common.mak
index da51495a16..8a2aa7cf0d 100644
--- a/common.mak
+++ b/common.mak
@@ -39,9 +39,9 @@ $(HOSTOBJS): %.o: %.c
$(HOSTPROGS): %$(HOSTEXESUF): %.o
$(HOSTCC) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
-$(OBJS): | $(dir $(OBJS))
-$(HOSTOBJS): | $(dir $(HOSTOBJS))
-$(TESTOBJS): | $(dir $(TESTOBJS))
+$(OBJS): | $(sort $(dir $(OBJS)))
+$(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
+$(TESTOBJS): | $(sort $(dir $(TESTOBJS)))
$(TOOLOBJS): | tools
OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOSTOBJS) $(TESTOBJS))