[Sheepdog] [PATCH 2/9] sheep: modify the Makefile.am to run farm.

Liu Yuan namei.unix at gmail.com
Wed Dec 21 10:17:34 CET 2011


From: Liu Yuan <tailai.ly at taobao.com>

Drive farm to work!

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/Makefile.am |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/sheep/Makefile.am b/sheep/Makefile.am
index 146b421..2a8290e 100644
--- a/sheep/Makefile.am
+++ b/sheep/Makefile.am
@@ -25,7 +25,7 @@ INCLUDES		= -I$(top_builddir)/include -I$(top_srcdir)/include \
 sbin_PROGRAMS		= sheep
 
 sheep_SOURCES		= sheep.c group.c sdnet.c store.c vdi.c work.c journal.c ops.c \
-			  cluster/local.c strbuf.c simple_store.c
+			  cluster/local.c strbuf.c simple_store.c slabs.c
 if BUILD_COROSYNC
 sheep_SOURCES		+= cluster/corosync.c
 endif
@@ -36,12 +36,14 @@ if BUILD_ACCORD
 sheep_SOURCES		+= cluster/accord.c
 endif
 
-sheep_LDADD	  	= ../lib/libsheepdog.a -lpthread \
+sheep_SOURCES		+= farm/sha1_file.c farm/trunk.c farm/snap.c farm/farm.c
+
+sheep_LDADD	  	= ../lib/libsheepdog.a -lpthread -lssl -lz \
 			  $(libcpg_LIBS) $(libcfg_LIBS) $(libacrd_LIBS)
 sheep_DEPENDENCIES	= ../lib/libsheepdog.a
 
 
-noinst_HEADERS		= work.h sheep_priv.h cluster.h strbuf.h
+noinst_HEADERS		= work.h sheep_priv.h cluster.h strbuf.h slabs.h farm.h
 
 EXTRA_DIST		= 
 
-- 
1.7.8.rc3




More information about the sheepdog mailing list