WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] No more dependency of GNU Make 'eval' function, which is not present in
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 24 May 2005 15:21:46 +0000
Delivery-date: Tue, 24 May 2005 16:01:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] No more dependency of GNU Make 'eval' function, which is not present in, BitKeeper Bot <=