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/
Home Products Support Community News


[Xen-devel] [PATCH 1 of 9] xl: use the regular implicit rules to build t

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 1 of 9] xl: use the regular implicit rules to build the xl .o files
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Fri, 13 Aug 2010 14:50:04 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Fri, 13 Aug 2010 06:53:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1281707403@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1281706573 -3600
# Node ID d033ff85952a36f7c5022832dd8a6381802b87b8
# Parent  08b7ef5bb11ab1611e3a9c618b97a8e169b322a2
xl: use the regular implicit rules to build the xl .o files

Having $(XL_OBJS) makes part of a subsequent patch a little cleaner.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 08b7ef5bb11a -r d033ff85952a tools/libxl/Makefile
--- a/tools/libxl/Makefile      Fri Aug 13 14:36:13 2010 +0100
+++ b/tools/libxl/Makefile      Fri Aug 13 14:36:13 2010 +0100
@@ -25,6 +25,8 @@ LIBXLU_OBJS = libxlu_cfg_y.o libxlu_cfg_
 LIBXLU_OBJS = libxlu_cfg_y.o libxlu_cfg_l.o libxlu_cfg.o
+XL_OBJS = xl.o xl_cmdimpl.o xl_cmdtable.o
 .PHONY: all
 all: $(CLIENTS) libxenlight.so libxenlight.a libxlutil.so libxlutil.a \
@@ -76,16 +78,7 @@ libxlutil.a: $(LIBXLU_OBJS)
 libxlutil.a: $(LIBXLU_OBJS)
        $(AR) rcs libxlutil.a $^
-xl.o: xl.c
-       $(CC) $(CFLAGS) -c xl.c
-xl_cmdimpl.o: xl_cmdimpl.c
-       $(CC) $(CFLAGS) -c xl_cmdimpl.c
-xl_cmdtable.o: xl_cmdtable.c
-       $(CC) $(CFLAGS) -c xl_cmdtable.c
-$(CLIENTS): xl.o xl_cmdimpl.o xl_cmdtable.o libxlutil.so libxenlight.so
+$(CLIENTS): $(XL_OBJS) libxlutil.so libxenlight.so
        $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
 .PHONY: install

Xen-devel mailing list