From: Ian Campbell <ian.campbell@citrix.com>
To: xen-devel@lists.xensource.com
Cc: Ian Campbell <ian.campbell@citrix.com>
Subject: [PATCH 1 of 9] xl: use the regular implicit rules to build the xl .o files
Date: Fri, 13 Aug 2010 14:50:04 +0100 [thread overview]
Message-ID: <d033ff85952a36f7c502.1281707404@localhost.localdomain> (raw)
In-Reply-To: <patchbomb.1281707403@localhost.localdomain>
# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# 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@citrix.com>
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
CLIENTS = xl
+
+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
next prev parent reply other threads:[~2010-08-13 13:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 13:50 [PATCH 0 of 9] libxl: autogenerate type definitions and destructor functions Ian Campbell
2010-08-13 13:50 ` Ian Campbell [this message]
2010-08-13 13:50 ` [PATCH 2 of 9] libxl: define specific types for string list and key, value list Ian Campbell
2010-08-13 13:50 ` [PATCH 3 of 9] libxl: move various enum and #defines above datastructure definitions Ian Campbell
2010-08-13 13:50 ` [PATCH 4 of 9] libxl: ensure result of libxl_poolid_to_name is always dynamically allocated Ian Campbell
2010-08-13 13:50 ` [PATCH 5 of 9] libxl: move type definitions into _libxl_types.h Ian Campbell
2010-08-13 13:50 ` [PATCH 6 of 9] libxl: tweak formatting/whitespace of _libxl_types.h Ian Campbell
2010-08-13 13:50 ` [PATCH 7 of 9] libxl: autogenerate _libxl_types.h Ian Campbell
2010-08-13 13:50 ` [PATCH 8 of 9] libxl: generate destructors for each libxl defined type Ian Campbell
2010-08-13 13:50 ` [PATCH 9 of 9] xl: free the libxl types contained in struct domain_config Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d033ff85952a36f7c502.1281707404@localhost.localdomain \
--to=ian.campbell@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).