Commit 65240fbd authored by Andrea Bolognani's avatar Andrea Bolognani

src: Build libutil.la separately

We use these utility functions both in the daemon and
for test programs, so create a new convenience library
that we can compile once and include in both places.
Signed-off-by: 's avatarAndrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina's avatarPavel Hrdina <phrdina@redhat.com>
parent 14ad54f2
......@@ -18,12 +18,20 @@ AM_LDFLAGS = \
$(PIE_LDFLAGS) \
$(NULL)
noinst_LTLIBRARIES = \
libutil.la \
$(NULL)
libutil_la_SOURCES = \
util.c \
util.h \
$(NULL)
bin_PROGRAMS = libvirt-dbus
libvirt_dbus_SOURCES = \
main.c \
connect.c connect.h \
util.c util.h \
domain.c domain.h \
events.c events.h \
gdbus.c gdbus.h \
......@@ -35,6 +43,7 @@ libvirt_dbus_SOURCES = \
storagevol.c storagevol.h \
$(NULL)
libvirt_dbus_LDADD = \
libutil.la \
$(GIO2_LIBS) \
$(GLIB2_LIBS) \
$(LIBVIRT_LIBS) \
......
......@@ -18,7 +18,8 @@ check_PROGRAMS = \
test_util
test_util_SOURCES = \
test_util.c $(top_srcdir)/src/util.c
test_util.c \
$(NULL)
test_util_CFLAGS = \
$(GIO2_CFLAGS) \
$(GLIB2_CFLAGS) \
......@@ -28,6 +29,7 @@ test_util_LDFLAGS = \
$(GLIB2_LDFLAGS) \
$(LIBVIRT_LDFLAGS)
test_util_LDADD = \
$(top_builddir)/src/libutil.la \
$(GIO2_LIBS) \
$(GLIB2_LIBS) \
$(LIBVIRT_LIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment