[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 5ab2886] Don't use implicit rules for Makefile

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 5ab2886] Don't use implicit rules for Makefile
Date: Tue, 06 Oct 2009 20:05:50 -0000

From: Juan Quintela <address@hidden>

This remove implicit rules + implicit variables.
Explicit rules like the generation of %.h and %.c from %.hx still works
as expected.

As an added bonus, now the output of make -d is readable.

As another added bonus, time spend on Makefiles is way smaller.
We run make -j3 in a fully compiled tree, and results are:


$ time make -j3
real 0m1.225s
user 0m1.660s
sys 0m0.253s

$ time make -j3
real 0m0.422s
user 0m0.393s
sys 0m0.248s

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/rules.mak b/rules.mak
index 54ac88a..b380903 100644
--- a/rules.mak
+++ b/rules.mak
@@ -1,4 +1,16 @@
+# Don't use implicit rules or variables
+# we have explicit rules for everything
+# Files with this suffixes are final, don't try to generate them
+# using implicit rules
 %.o: %.c
        $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<,"  CC   

reply via email to

[Prev in Thread] Current Thread [Next in Thread]