2007-02-14 04:40:09 +03:00
## Process this file with automake to produce Makefile.in
INCLUDES = @LIBXML_CFLAGS@
2007-03-12 17:10:14 +03:00
UUID = $( shell uuidgen)
2007-02-14 04:40:09 +03:00
2007-02-23 15:46:35 +03:00
sbin_PROGRAMS = libvirt_qemud
2007-02-14 04:40:09 +03:00
libvirt_qemud_SOURCES = qemud.c internal.h protocol.h \
driver.c driver.h \
dispatch.c dispatch.h \
2007-02-14 19:02:40 +03:00
conf.c conf.h \
2007-02-14 19:26:42 +03:00
bridge.c bridge.h \
2007-02-26 18:32:27 +03:00
iptables.c iptables.h \
2007-03-15 20:24:56 +03:00
uuid.c uuid.h \
buf.c buf.h
2007-02-14 04:40:09 +03:00
#-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_POSIX_C_SOURCE=199506L
libvirt_qemud_CFLAGS = \
-I$( top_srcdir) /include -I$( top_builddir) /include $( LIBXML_CFLAGS) \
2007-03-01 19:18:55 +03:00
$( WARN_CFLAGS) -DLOCAL_STATE_DIR= " \" $( localstatedir) \" " \
2007-04-04 13:32:00 +04:00
-DSYSCONF_DIR= " \" $( sysconfdir) \" " \
-DQEMUD_PID_FILE= " \" $( QEMUD_PID_FILE) \" "
2007-02-14 19:02:40 +03:00
libvirt_qemud_LDFLAGS = $( LIBXML_LIBS) $( SYSFS_LIBS)
2007-02-14 04:40:09 +03:00
libvirt_qemud_DEPENDENCIES =
libvirt_qemud_LDADD =
2007-03-07 14:54:29 +03:00
install-data-local :
mkdir -p $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/autostart
$( INSTALL_DATA) $( srcdir) /default-network.xml $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/default.xml
2007-03-12 17:10:14 +03:00
sed -i -e " s,</name>,</name>\n <uuid> $( UUID) </uuid>, " $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/default.xml
2007-03-08 17:00:00 +03:00
test -e $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/autostart/default.xml || \
ln -s ../default.xml $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/autostart/default.xml
2007-03-09 02:31:28 +03:00
mkdir -p $( DESTDIR) $( localstatedir) /run/libvirt
2007-03-14 01:43:22 +03:00
mkdir -p $( DESTDIR) $( localstatedir) /lib/libvirt
2007-03-07 14:54:29 +03:00
uninstall-local :
rm -f $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/autostart/default.xml
rm -f $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/default.xml
rmdir $( DESTDIR) $( sysconfdir) /libvirt/qemu/networks/autostart || :
2007-03-09 02:31:28 +03:00
rmdir $( DESTDIR) $( localstatedir) /run/libvirt || :
2007-03-14 01:43:22 +03:00
rmdir $( DESTDIR) $( localstatedir) /lib/libvirt || :
2007-03-07 14:54:29 +03:00
EXTRA_DIST = libvirtd.in default-network.xml
2007-02-23 15:50:58 +03:00
i f L I B V I R T _ I N I T _ S C R I P T S _ R E D _ H A T
initdir = $( sysconfdir) /rc.d/init.d
init_SCRIPTS = libvirtd
libvirtd : libvirtd .in
sed \
-e s!\@ localstatedir\@ !@localstatedir@! \
-e s!\@ sbindir\@ !@sbindir@! \
-e s!\@ sysconfdir\@ !@sysconfdir@! \
< $< > $@
chmod a+x libvirtd
CLEANFILES = libvirtd
e n d i f # DBUS_INIT_SCRIPTS_RED_HAT