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 15:21:46 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-24 15:21:46 +0000
commit03f0a338a81688df368029b496f363ca84975b8c (patch)
tree71baa176d713905b8ea7311dbb7fcacf03a04b4b /tools/xcutils
parent25849358366d853a7fc0b44d9d8aa84f195bba4d (diff)
downloadxen-03f0a338a81688df368029b496f363ca84975b8c.tar.gz
xen-03f0a338a81688df368029b496f363ca84975b8c.tar.bz2
xen-03f0a338a81688df368029b496f363ca84975b8c.zip
bitkeeper revision 1.1527.1.2 (4293468ayy5XU1yxu0QwnCQ83S5pbA)
No more dependency of GNU Make 'eval' function, which is not present in older versions. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xcutils')
-rw-r--r--tools/xcutils/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/tools/xcutils/Makefile b/tools/xcutils/Makefile
index 8c350ce7c4..1dc682ff33 100644
--- a/tools/xcutils/Makefile
+++ b/tools/xcutils/Makefile
@@ -30,21 +30,14 @@ PROG_DEP = .*.d
PROGRAMS = xc_restore
-xc_restore_OBJS = xc_restore.o
-
-LDLIBS = -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil
+LDLIBS = -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil
.PHONY: all
all: build
build: $(PROGRAMS)
-define PROGRAM_template
-$(1): $$($(1)_OBJS)
- $$(LINK.o) $$^ $$(LDLIBS) -o $$@
-ALL_OBJS += $$($(1)_OBJS)
-endef
-
-$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
+$(PROGRAMS): %: %.o
+ $(LINK.o) $^ $(LDLIBS) -o $@
.PHONY: install
install: build
@@ -54,7 +47,7 @@ install: build
clean:
- $(RM) $(ALL_OBJS) $(PROGRAMS)
+ $(RM) *.o $(PROGRAMS)
$(RM) $(PROG_DEP)
-include $(PROG_DEP)