bitkeeper revision 1.1159.223.64 (42048c67tDD9EILuuYdpEx-vM6LTnw)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 5 Feb 2005 09:05:43 +0000 (09:05 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 5 Feb 2005 09:05:43 +0000 (09:05 +0000)
Name: tools-misc-TARGETS.patch
Description: Split compile/link stages
 distcc behaves much better when you compile and link in 2 separate steps.
 Plus, this is a more standard way of doing things.
Signed-off-by: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
tools/misc/Makefile

index 4cfc16f58ec345ca1f28b1bc8919180ab67727d1..39bfc424e681a976457a4e0c8d352c7f4f980f00 100644 (file)
@@ -34,5 +34,8 @@ clean:
        $(RM) *.o $(TARGETS) *~
        $(MAKE) -C miniterm clean
 
-%: %.c $(HDRS) Makefile
+%.o: %.c $(HDRS) Makefile
+       $(CC) -c $(CFLAGS) -o $@ $<
+
+$(TARGETS): %: %.o Makefile
        $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil