Patchwork [RFC,v2,6/6] qed: build as shared library

login
register
mail settings
Submitter Fam Zheng
Date Sept. 6, 2013, 7:28 a.m.
Message ID <1378452491-20467-7-git-send-email-famz@redhat.com>
Download mbox | patch
Permalink /patch/273112/
State New
Headers show

Comments

Fam Zheng - Sept. 6, 2013, 7:28 a.m.
Another example of DSO build but with multiple files in a module.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/Makefile.objs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/block/Makefile.objs b/block/Makefile.objs
index b1e1520..4cb2ab9 100644
--- a/block/Makefile.objs
+++ b/block/Makefile.objs
@@ -1,7 +1,6 @@ 
 block-obj-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
 block-obj-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
-block-obj-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
-block-obj-y += qed-check.o
+block-obj-m += qed.mo
 block-obj-y += vhdx.o
 block-obj-y += parallels.o blkdebug.o blkverify.o
 block-obj-y += snapshot.o qapi.o
@@ -25,3 +24,4 @@  common-obj-y += backup.o
 
 $(obj)/curl.o-cflags := $(CURL_CFLAGS)
 $(obj)/curl.o-libs := $(CURL_LIBS)
+$(obj)/qed.mo-obj := $(addprefix $(obj)/,qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o qed-check.o)