2015-11-11 18:04:52 +01:00
|
|
|
Index: xen-4.6.0-testing/tools/xenstore/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.6.0-testing.orig/tools/xenstore/Makefile
|
|
|
|
+++ xen-4.6.0-testing/tools/xenstore/Makefile
|
|
|
|
@@ -20,6 +20,7 @@ LDFLAGS += $(LDFLAGS-y)
|
2008-07-19 01:04:37 +02:00
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
CLIENTS := xenstore-exists xenstore-list xenstore-read xenstore-rm xenstore-chmod
|
2011-03-21 17:47:37 +01:00
|
|
|
CLIENTS += xenstore-write xenstore-ls xenstore-watch
|
2007-04-26 01:53:07 +02:00
|
|
|
+CLIENTS_DOMU := $(patsubst xenstore-%,domu-xenstore-%,$(CLIENTS))
|
|
|
|
|
|
|
|
XENSTORED_OBJS = xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o tdb.o hashtable.o
|
|
|
|
|
2015-11-11 18:04:52 +01:00
|
|
|
@@ -58,7 +59,7 @@ endif
|
2010-01-16 01:12:54 +01:00
|
|
|
all: $(ALL_TARGETS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
.PHONY: clients
|
|
|
|
-clients: xenstore $(CLIENTS) xenstore-control
|
|
|
|
+clients: xenstore $(CLIENTS) $(CLIENTS_DOMU) xenstore-control
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
ifeq ($(CONFIG_SunOS),y)
|
|
|
|
xenstored_probes.h: xenstored_probes.d
|
2015-11-11 18:04:52 +01:00
|
|
|
@@ -86,6 +87,9 @@ xenstored.a: $(XENSTORED_OBJS)
|
2008-07-19 01:04:37 +02:00
|
|
|
$(CLIENTS): xenstore
|
|
|
|
ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
+$(CLIENTS_DOMU): xenstore
|
|
|
|
+ ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
+
|
2008-07-19 01:04:37 +02:00
|
|
|
xenstore: xenstore_client.o $(LIBXENSTORE)
|
2015-01-14 21:58:52 +01:00
|
|
|
$(CC) $< $(LDFLAGS) $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@ $(APPEND_LDFLAGS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2015-11-11 18:04:52 +01:00
|
|
|
@@ -113,7 +117,7 @@ clean:
|
2008-07-19 01:04:37 +02:00
|
|
|
rm -f *.a *.o *.opic *.so* xenstored_probes.h
|
2007-04-26 01:53:07 +02:00
|
|
|
rm -f xenstored xs_random xs_stress xs_crashme
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -f xs_tdb_dump xenstore-control init-xenstore-domain
|
2008-07-19 01:04:37 +02:00
|
|
|
- rm -f xenstore $(CLIENTS)
|
2012-09-17 17:49:23 +02:00
|
|
|
+ rm -f xenstore $(CLIENTS) $(CLIENTS_DOMU)
|
2009-05-04 18:38:09 +02:00
|
|
|
$(RM) $(DEPS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2015-11-11 18:04:52 +01:00
|
|
|
.PHONY: distclean
|
|
|
|
@@ -136,13 +140,17 @@ ifeq ($(XENSTORE_XENSTORED),y)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_LIB_STORED)
|
|
|
|
$(INSTALL_PROG) xenstored $(DESTDIR)$(sbindir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)/bin
|
|
|
|
endif
|
|
|
|
$(INSTALL_PROG) xenstore-control $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_PROG) xenstore $(DESTDIR)$(bindir)
|
2008-07-19 01:04:37 +02:00
|
|
|
set -e ; for c in $(CLIENTS) ; do \
|
2015-11-11 18:04:52 +01:00
|
|
|
ln -f $(DESTDIR)$(bindir)/xenstore $(DESTDIR)$(bindir)/$${c} ; \
|
2008-07-19 01:04:37 +02:00
|
|
|
done
|
2015-11-11 18:04:52 +01:00
|
|
|
- $(INSTALL_DIR) $(DESTDIR)$(libdir)
|
2007-04-26 01:53:07 +02:00
|
|
|
+ for client in $(CLIENTS_DOMU); do \
|
2015-11-24 16:48:21 +01:00
|
|
|
+ $(INSTALL_PROG) $$client $(DESTDIR)$(bindir)/$${client/domu-}; \
|
2007-04-26 01:53:07 +02:00
|
|
|
+ done
|
2015-11-24 16:48:21 +01:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(libdir)
|
2015-11-11 18:04:52 +01:00
|
|
|
$(INSTALL_SHLIB) libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
|
|
|
|
ln -sf libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenstore.so.$(MAJOR)
|
|
|
|
ln -sf libxenstore.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenstore.so
|