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] Don't need xc_save_OBJS with updated Makefile.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Don't need xc_save_OBJS with updated Makefile.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 24 May 2005 17:50:58 +0000
Delivery-date: Tue, 24 May 2005 18:01:45 +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.1527.1.3, 2005/05/24 18:50:58+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        Don't need xc_save_OBJS with updated Makefile.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 Makefile |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)


diff -Nru a/tools/xcutils/Makefile b/tools/xcutils/Makefile
--- a/tools/xcutils/Makefile    2005-05-24 14:02:29 -04:00
+++ b/tools/xcutils/Makefile    2005-05-24 14:02:29 -04:00
@@ -30,23 +30,13 @@
 
 PROGRAMS               = xc_restore xc_save
 
-xc_restore_OBJS                = xc_restore.o
-xc_save_OBJS           = xc_save.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)
- ALL_OBJS      += $$($(1)_OBJS)
-endef
-
-$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
-
-$(PROGRAMS):
+$(PROGRAMS): %: %.o
        $(LINK.o) $^ $(LDLIBS) -o $@
 
 .PHONY: install
@@ -57,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] Don't need xc_save_OBJS with updated Makefile., BitKeeper Bot <=