From: Thanos Makatos <thanos.makatos@citrix.com>
To: xen-devel@lists.xen.org
Cc: thanos.makatos@citrix.com
Subject: [PATCH 7 of 7 v5] blktap3/tapback: Introduce tapback daemon Makefile
Date: Mon, 15 Jul 2013 12:38:48 +0100 [thread overview]
Message-ID: <5eb56a63bbd2030d19e7.1373888328@makatos-desktop> (raw)
In-Reply-To: <patchbomb.1373888321@makatos-desktop>
This patch introduces the Makefile that builds the tapback daemon.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
---
Changed since v2:
* Use $(BINDIR) as the daemon's installation directory.
* Fixed whitespace.
Changed since v3:
* Explicitly use libblktapctl.3 to avoid conflicts with the blktap2 one.
* Merge patch that adds the tapback binary to the mercurial ignore list into
this patch.
diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -375,3 +375,6 @@
^unmodified_drivers/linux-2.6/.*\.ko$
^unmodified_drivers/linux-2.6/.*\.mod\.c$
^LibVNCServer.*
+
+# blktap3
+^tools/blktap3/tapback/tapback$
diff --git a/tools/blktap3/tapback/Makefile b/tools/blktap3/tapback/Makefile
--- a/tools/blktap3/tapback/Makefile
+++ b/tools/blktap3/tapback/Makefile
@@ -3,6 +3,10 @@ include $(XEN_ROOT)/tools/Rules.mk
BLKTAP_ROOT := ..
+INST_DIR ?= $(BINDIR)
+
+IBIN = tapback
+
# -D_GNU_SOURCE is required by vasprintf.
override CFLAGS += \
-I$(BLKTAP_ROOT)/include \
@@ -25,7 +29,20 @@ override LDFLAGS += \
$(LDLIBS_libxenstore) \
$(LDFLAGS_libxenctrl)
+TAPBACK-OBJS := log.o xenstore.o frontend.o backend.o
+
+TAPBACK-LIBS := $(BLKTAP_ROOT)/control/libblktapctl.so.3.0
+
+all: $(IBIN)
+
+$(IBIN): $(TAPBACK-OBJS) tapback.o
+ $(CC) -o $@ $^ $(TAPBACK-LIBS) $(LDFLAGS)
+
+install: all
+ $(INSTALL_DIR) -p $(DESTDIR)$(INST_DIR)
+ $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(INST_DIR)
+
clean:
- rm -f *.o *.o.d .*.o.d
+ rm -f *.o *.o.d .*.o.d $(IBIN)
.PHONY: clean install
next prev parent reply other threads:[~2013-07-15 11:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 11:38 [PATCH 0 of 7 v5] Introduce the tapback daemon (most of blkback in user-space) Thanos Makatos
2013-07-15 11:38 ` [PATCH 1 of 7 v5] blktap3/tapback: Introduce core defines and structure definitions Thanos Makatos
2013-07-15 11:38 ` [PATCH 2 of 7 v5] blktap3/tapback: Introduces functionality required to access XenStore Thanos Makatos
2013-07-15 11:38 ` [PATCH 3 of 7 v5] blktap3/tapback: Logging for the tapback daemon Thanos Makatos
2013-07-15 11:38 ` [PATCH 4 of 7 v5] blktap3/tapback: Introduce back-end XenStore path handler Thanos Makatos
2013-07-15 11:38 ` [PATCH 5 of 7 v5] blktap3/tapback: Introduce front-end " Thanos Makatos
2013-07-15 11:38 ` [PATCH 6 of 7 v5] blktap3/tapback: Introduce the tapback daemon Thanos Makatos
2013-07-15 11:38 ` Thanos Makatos [this message]
2013-07-15 14:25 ` [PATCH 0 of 7 v5] Introduce the tapback daemon (most of blkback in user-space) Thanos Makatos
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=5eb56a63bbd2030d19e7.1373888328@makatos-desktop \
--to=thanos.makatos@citrix.com \
--cc=xen-devel@lists.xen.org \
/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).