[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 6 of 6 v2] blktap3/sring: Compile the shared ring into a static library



Signed-off-by: Thanos Makatos <thanos.makatos@xxxxxxxxxx>

---
Changed since v1:
  * Introduces sring stats in compilation.

diff --git a/tools/blktap3/drivers/sring/Makefile 
b/tools/blktap3/drivers/sring/Makefile
new file mode 100644
--- /dev/null
+++ b/tools/blktap3/drivers/sring/Makefile
@@ -0,0 +1,34 @@
+XEN_ROOT=$(CURDIR)/../../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+BLKTAP_ROOT = ../..
+
+override CFLAGS += \
+       -fno-strict-aliasing \
+       -I$(BLKTAP_ROOT)/include \
+       -I$(BLKTAP_ROOT)/drivers \
+       $(CFLAGS_libxenctrl) \
+    $(CFLAGS_libxenstore) \
+    $(CFLAGS_xeninclude) \
+    -Werror \
+    -Wall \
+    -Wextra
+
+override LDFLAGS += \
+    $(LDLIBS_libxenstore) \
+    $(LDFLAGS_libxenctrl)
+
+SRING-OBJS := td-blkif.o
+SRING-OBJS += td-req.o
+SRING-OBJS += td-ctx.o
+SRING-OBJS += td-stats.o
+
+libsring.a: $(SRING-OBJS)
+       ar rcs libsring.a $(SRING-OBJS) 
+
+all: libsring.a
+
+clean:
+       rm -rf $(SRING-OBJS) libsring.a
+
+.PHONY: all clean

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.