Makefile.am 1.1 KB
Newer Older
D
Daniel P. Berrange 已提交
1 2 3 4
## Process this file with automake to produce Makefile.in

INCLUDES = @LIBXML_CFLAGS@

5
sbin_PROGRAMS = libvirt_qemud
D
Daniel P. Berrange 已提交
6 7 8 9

libvirt_qemud_SOURCES = qemud.c internal.h protocol.h \
                driver.c driver.h \
                dispatch.c dispatch.h \
10
                conf.c conf.h \
11 12
                bridge.c bridge.h \
                iptables.c iptables.h
D
Daniel P. Berrange 已提交
13 14 15
#-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) \
16
        -Wall -Wextra -DLOCAL_STATE_DIR="\"$(localstatedir)\"" \
D
Daniel P. Berrange 已提交
17
        -DSYSCONF_DIR="\"$(sysconfdir)\""
18
libvirt_qemud_LDFLAGS = $(LIBXML_LIBS) $(SYSFS_LIBS)
D
Daniel P. Berrange 已提交
19 20 21
libvirt_qemud_DEPENDENCIES =
libvirt_qemud_LDADD =

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
EXTRA_DIST = libvirt_qemud.init.in

if LIBVIRT_INIT_SCRIPTS_RED_HAT
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
endif # DBUS_INIT_SCRIPTS_RED_HAT