[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools: xenstat: install and use shared library
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1300893526 0 # Node ID b4351d57464b7b61b6b85a67211ab27aa1054536 # Parent c80e0fb4fe932b4d8379ea5739af93ae22a30ea5 tools: xenstat: install and use shared library Remove .so files from the .a file. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r c80e0fb4fe93 -r b4351d57464b tools/Rules.mk --- a/tools/Rules.mk Wed Mar 23 13:34:55 2011 +0000 +++ b/tools/Rules.mk Wed Mar 23 15:18:46 2011 +0000 @@ -29,6 +29,10 @@ LDLIBS_libxenstore = -L$(XEN_XENSTORE) -lxenstore SHLIB_libxenstore = -Wl,-rpath-link=$(XEN_XENSTORE) +CFLAGS_libxenstat = -I$(XEN_LIBXENSTAT) +LDLIBS_libxenstat = $(SHLIB_libxenctrl) $(SHLIB_libxenstore) -L$(XEN_LIBXENSTAT) -lxenstat +SHLIB_libxenstat = -Wl,-rpath-link=$(XEN_LIBXENSTAT) + ifeq ($(CONFIG_Linux),y) LIBXL_BLKTAP = y else diff -r c80e0fb4fe93 -r b4351d57464b tools/xenstat/libxenstat/Makefile --- a/tools/xenstat/libxenstat/Makefile Wed Mar 23 13:34:55 2011 +0000 +++ b/tools/xenstat/libxenstat/Makefile Wed Mar 23 15:18:46 2011 +0000 @@ -37,19 +37,15 @@ WARN_FLAGS=-Wall -Werror CFLAGS+=-Isrc $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(CFLAGS_xeninclude) -LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ + LDLIBS-y = $(LDLIBS_libxenstore) $(LDLIBS_libxenctrl) LDLIBS-$(CONFIG_SunOS) += -lkstat -ARLIBS-y = $(XEN_XENSTORE)/libxenstore.so $(XEN_LIBXC)/libxenctrl.so -ARLIBS-x86_64 = /usr/lib/amd64/libkstat.so -ARLIBS-x86_32 = /usr/lib/libkstat.so -ARLIBS-$(CONFIG_SunOS) += $(ARLIBS-$(XEN_TARGET_ARCH)) .PHONY: all -all: $(LIB) +all: $(LIB) $(SHLIB) $(SHLIB_LINKS) $(LIB): $(OBJECTS-y) - $(AR) rc $@ $^ $(ARLIBS-y) + $(AR) rc $@ $^ $(RANLIB) $@ $(SHLIB): $(OBJECTS-y) @@ -65,7 +61,7 @@ src/xenstat_solaris.o: src/xenstat_solaris.c src/xenstat_priv.h $(CC) $(CFLAGS) $(WARN_FLAGS) -c -o $@ $< -src/libxenstat.so.$(MAJOR): $(LIB) +src/libxenstat.so.$(MAJOR): $(SHLIB) $(MAKE_LINK) $(<F) $@ src/libxenstat.so: src/libxenstat.so.$(MAJOR) @@ -73,16 +69,11 @@ .PHONY: install install: all -#install: all -# $(INSTALL_DATA) src/xenstat.h $(DESTDIR)$(includedir)/xenstat.h -# $(INSTALL_PROG) $(LIB) $(DESTDIR)$(libdir)/libxenstat.a -# $(INSTALL_PROG) $(SHLIB) \ -# $(DESTDIR)$(libdir)/libxenstat.so.$(MAJOR).$(MINOR) -# $(MAKE_LINK) libxenstat.so.$(MAJOR).$(MINOR) \ -# $(DESTDIR)$(libdir)/libxenstat.so.$(MAJOR) -# $(MAKE_LINK) libxenstat.so.$(MAJOR) \ -# $(DESTDIR)$(libdir)/libxenstat.so -# -$(LDCONFIG) + $(INSTALL_DATA) src/xenstat.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIBDIR)/libxenstat.a + $(INSTALL_PROG) src/libxenstat.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR) + ln -sf libxenstat.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenstat.so.$(MAJOR) + ln -sf libxenstat.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libxenstat.so PYLIB=bindings/swig/python/_xenstat.so PYMOD=bindings/swig/python/xenstat.py @@ -156,7 +147,7 @@ .PHONY: clean clean: - rm -f $(LIB) $(SHLIB) $(SHLIB_LINKS) $(OBJECTS-y) \ + rm -f $(SHLIB) $(SHLIB_LINKS) $(OBJECTS-y) \ $(BINDINGS) $(BINDINGSRC) $(DEPS) -include $(DEPS) diff -r c80e0fb4fe93 -r b4351d57464b tools/xenstat/xentop/Makefile --- a/tools/xenstat/xentop/Makefile Wed Mar 23 13:34:55 2011 +0000 +++ b/tools/xenstat/xentop/Makefile Wed Mar 23 15:18:46 2011 +0000 @@ -18,9 +18,8 @@ all install xentop: else -CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT) -LDFLAGS += -L$(XEN_LIBXENSTAT) -LDLIBS += -lxenstat $(CURSES_LIBS) $(SOCKET_LIBS) +CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat) +LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS) CFLAGS += -DHOST_$(XEN_OS) .PHONY: all _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |