aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xcutils
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-24 14:20:04 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-24 14:20:04 +0000
commit25849358366d853a7fc0b44d9d8aa84f195bba4d (patch)
treecf2af05f58db5e2d4db57f2563a074de64290a8d /tools/xcutils
parente8968bea9c93d8a475813d02957d05078dfa837f (diff)
downloadxen-25849358366d853a7fc0b44d9d8aa84f195bba4d.tar.gz
xen-25849358366d853a7fc0b44d9d8aa84f195bba4d.tar.bz2
xen-25849358366d853a7fc0b44d9d8aa84f195bba4d.zip
bitkeeper revision 1.1527.1.1 (42933814hYUdPBrhJ2nEsS5J3nRP8Q)
Another xcutil Makefile 'fix'. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xcutils')
-rw-r--r--tools/xcutils/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/xcutils/Makefile b/tools/xcutils/Makefile
index 71c3c6a404..8c350ce7c4 100644
--- a/tools/xcutils/Makefile
+++ b/tools/xcutils/Makefile
@@ -39,15 +39,13 @@ all: build
build: $(PROGRAMS)
define PROGRAM_template
- $(1): $$($(1)_OBJS)
- ALL_OBJS += $$($(1)_OBJS)
+$(1): $$($(1)_OBJS)
+ $$(LINK.o) $$^ $$(LDLIBS) -o $$@
+ALL_OBJS += $$($(1)_OBJS)
endef
$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
-$(PROGRAMS):
- $(LINK.o) $^ $(LDLIBS) -o $@
-
.PHONY: install
install: build
[ -d $(DESTDIR)$(PROGRAMS_INSTALL_DIR) ] || \