This reduces startup latency for make invocations, which is especially
noticeable on systems that are slow or have slow I/O, like Windows.
| ... | ... |
@@ -39,9 +39,9 @@ $(HOSTOBJS): %.o: %.c |
| 39 | 39 |
$(HOSTPROGS): %$(HOSTEXESUF): %.o |
| 40 | 40 |
$(HOSTCC) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS) |
| 41 | 41 |
|
| 42 |
-$(OBJS): | $(dir $(OBJS)) |
|
| 43 |
-$(HOSTOBJS): | $(dir $(HOSTOBJS)) |
|
| 44 |
-$(TESTOBJS): | $(dir $(TESTOBJS)) |
|
| 42 |
+$(OBJS): | $(sort $(dir $(OBJS))) |
|
| 43 |
+$(HOSTOBJS): | $(sort $(dir $(HOSTOBJS))) |
|
| 44 |
+$(TESTOBJS): | $(sort $(dir $(TESTOBJS))) |
|
| 45 | 45 |
$(TOOLOBJS): | tools |
| 46 | 46 |
|
| 47 | 47 |
OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOSTOBJS) $(TESTOBJS)) |