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

[Xen-changelog] No more dependency of GNU Make 'eval' function, which is not present in



ChangeSet 1.1529, 2005/05/24 16:21:46+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        No more dependency of GNU Make 'eval' function, which is not present in
        older versions.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 Makefile |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)


diff -Nru a/tools/xcutils/Makefile b/tools/xcutils/Makefile
--- a/tools/xcutils/Makefile    2005-05-24 12:01:58 -04:00
+++ b/tools/xcutils/Makefile    2005-05-24 12:01:58 -04:00
@@ -30,21 +30,14 @@
 
 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 @@
 
 
 clean:
-       $(RM) $(ALL_OBJS) $(PROGRAMS)
+       $(RM) *.o $(PROGRAMS)
        $(RM) $(PROG_DEP)
 
 -include $(PROG_DEP)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.