2006-06-28 18:19:13 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2007-11-26 11:52:38 +00:00
|
|
|
if WITH_PROXY
|
2007-12-07 15:00:26 +00:00
|
|
|
INCLUDES = -I$(top_srcdir)/gnulib/lib -I../gnulib/lib \
|
|
|
|
-I$(top_builddir)/include -I@top_srcdir@/include \
|
|
|
|
-I@top_srcdir@/proxy -I@top_srcdir@/src @LIBXML_CFLAGS@ \
|
2006-09-21 15:24:37 +00:00
|
|
|
-DPROXY -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
2008-11-04 23:37:23 +00:00
|
|
|
-DGETTEXT_PACKAGE=\"$(PACKAGE)\" $(WARN_CFLAGS) $(XEN_CFLAGS)
|
2006-06-28 18:19:13 +00:00
|
|
|
|
2006-07-03 13:45:55 +00:00
|
|
|
libexec_PROGRAMS = libvirt_proxy
|
2006-06-28 18:19:13 +00:00
|
|
|
|
|
|
|
libvirt_proxy_SOURCES = libvirt_proxy.c @top_srcdir@/src/xend_internal.c \
|
|
|
|
@top_srcdir@/src/xen_internal.c @top_srcdir@/src/virterror.c \
|
2008-07-25 13:17:27 +00:00
|
|
|
@top_srcdir@/src/sexpr.c \
|
2009-01-15 19:56:05 +00:00
|
|
|
@top_srcdir@/src/threads.c \
|
Move safewrite and saferead to a separate file.
We currently use safewrite from inside libvirt and don't want to publish
any such function name. However, we do want to use it in applications
like virsh, libvirtd and libvirt_proxy that link with libvirt. To that
end, this change moves that function definition (along with the nearly
identical saferead) into a new file, util-lib.c. To avoid maintaining
separate copies of even such small functions, we simply include that new
file from util.c. Then, the separate applications that need to use
safewrite simply compile and link with util-lib.c.
Of course, this does mean that each of those applications will
containing two copies of these functions. However, the functions
are so small that it's not worth worrying about that.
* src/util.c (saferead, safewrite): Move function definitions to
util-lib.c and include that .c file.
* src/util-lib.c (saferead, safewrite): New file. Functions from src/util.c
with slight change (s/int r =/ssize_t r =/) to reflect read/write return type.
* src/util-lib.h: Declare the two moved functions.
* src/util.h: Remove declarations. Include src/util-lib.h.
* proxy/Makefile.am (libvirt_proxy_SOURCES): Add src/util-lib.c.
* qemud/Makefile.am (libvirtd_SOURCES): Likewise.
* src/Makefile.am (virsh_SOURCES): Add util-lib.c. Remove some SP-before-TAB.
2008-02-22 15:53:13 +00:00
|
|
|
@top_srcdir@/src/xs_internal.c @top_srcdir@/src/buf.c \
|
2008-02-27 04:35:08 +00:00
|
|
|
@top_srcdir@/src/capabilities.c \
|
2008-04-28 21:44:54 +00:00
|
|
|
@top_srcdir@/src/memory.c \
|
2009-09-01 20:37:42 +00:00
|
|
|
@top_srcdir@/src/storage_encryption_conf.c \
|
2008-07-25 10:49:33 +00:00
|
|
|
@top_srcdir@/src/domain_conf.c \
|
2008-02-27 04:35:08 +00:00
|
|
|
@top_srcdir@/src/util.c \
|
2008-10-23 13:18:18 +00:00
|
|
|
@top_srcdir@/src/event.c \
|
2008-11-06 16:36:07 +00:00
|
|
|
@top_srcdir@/src/uuid.c \
|
|
|
|
@top_srcdir@/src/logging.c
|
2008-11-04 23:37:23 +00:00
|
|
|
libvirt_proxy_LDFLAGS = $(WARN_CFLAGS) $(XEN_LIBS)
|
2006-06-28 18:19:13 +00:00
|
|
|
libvirt_proxy_DEPENDENCIES =
|
2008-04-29 21:23:34 +00:00
|
|
|
libvirt_proxy_LDADD = ../gnulib/lib/libgnu.la
|
2006-06-28 18:19:13 +00:00
|
|
|
|
2006-07-03 13:45:55 +00:00
|
|
|
install-exec-hook:
|
|
|
|
chmod u+s $(DESTDIR)$(libexecdir)/libvirt_proxy
|
Move safewrite and saferead to a separate file.
We currently use safewrite from inside libvirt and don't want to publish
any such function name. However, we do want to use it in applications
like virsh, libvirtd and libvirt_proxy that link with libvirt. To that
end, this change moves that function definition (along with the nearly
identical saferead) into a new file, util-lib.c. To avoid maintaining
separate copies of even such small functions, we simply include that new
file from util.c. Then, the separate applications that need to use
safewrite simply compile and link with util-lib.c.
Of course, this does mean that each of those applications will
containing two copies of these functions. However, the functions
are so small that it's not worth worrying about that.
* src/util.c (saferead, safewrite): Move function definitions to
util-lib.c and include that .c file.
* src/util-lib.c (saferead, safewrite): New file. Functions from src/util.c
with slight change (s/int r =/ssize_t r =/) to reflect read/write return type.
* src/util-lib.h: Declare the two moved functions.
* src/util.h: Remove declarations. Include src/util-lib.h.
* proxy/Makefile.am (libvirt_proxy_SOURCES): Add src/util-lib.c.
* qemud/Makefile.am (libvirtd_SOURCES): Likewise.
* src/Makefile.am (virsh_SOURCES): Add util-lib.c. Remove some SP-before-TAB.
2008-02-22 15:53:13 +00:00
|
|
|
endif
|