~nova-coresec/ubuntu/maverick/libvirt/nova-ppa

« back to all changes in this revision

Viewing changes to src/Makefile.am

Tags: 0.4.4-3
* upload to unstable
* [96c6727] add /var/cache/libvirt needed by qemuDriver for temporary
  storage
* [794f95c] bump standards version to 3.8.0
* [05184af] add README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## Process this file with automake to produce Makefile.in
2
2
 
3
 
INCLUDES = -I$(top_builddir)/include -I@top_srcdir@/include @LIBXML_CFLAGS@ \
4
 
           -DBINDIR=\""$(libexecdir)"\" -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
5
 
           -DGETTEXT_PACKAGE=\"$(PACKAGE)\"
 
3
INCLUDES = \
 
4
           -I$(top_srcdir)/gnulib/lib -I../gnulib/lib \
 
5
           -I../include \
 
6
           -I@top_srcdir@/include \
 
7
           -I@top_srcdir@/qemud \
 
8
           $(LIBXML_CFLAGS) \
 
9
           $(GNUTLS_CFLAGS) \
 
10
           $(SASL_CFLAGS) \
 
11
           $(SELINUX_CFLAGS) \
 
12
           $(NUMACTL_CFLAGS) \
 
13
           -DBINDIR=\""$(libexecdir)"\" \
 
14
           -DSBINDIR=\""$(sbindir)"\" \
 
15
           -DSYSCONF_DIR="\"$(sysconfdir)\"" \
 
16
           -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
 
17
           -DLOCAL_STATE_DIR=\""$(localstatedir)"\" \
 
18
           -DGETTEXT_PACKAGE=\"$(PACKAGE)\" \
 
19
           $(WARN_CFLAGS) \
 
20
           $(LIBVIRT_FEATURES)
6
21
DEPS = libvirt.la
7
 
LDADDS = @STATIC_BINARIES@ libvirt.la
 
22
LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) libvirt.la ../gnulib/lib/libgnu.la
8
23
VIRSH_LIBS = @VIRSH_LIBS@
9
24
 
10
 
EXTRA_DIST = libvirt_sym.version
 
25
confdir = $(sysconfdir)/libvirt/
 
26
conf_DATA = qemu.conf
 
27
 
 
28
 
 
29
EXTRA_DIST = libvirt_sym.version $(conf_DATA)
11
30
 
12
31
lib_LTLIBRARIES = libvirt.la
13
 
libvirt_la_LIBADD = @LIBXML_LIBS@
14
 
 
15
 
libvirt_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libvirt_sym.version \
16
 
                    -version-info @LIBVIRT_VERSION_INFO@
17
 
 
18
 
libvirt_la_SOURCES =                                            \
 
32
 
 
33
CLIENT_SOURCES =                                                \
19
34
                libvirt.c internal.h                            \
 
35
                gnutls_1_0_compat.h                             \
 
36
                socketcompat.h                                  \
 
37
                memory.c memory.h                               \
20
38
                hash.c hash.h                                   \
21
39
                test.c test.h                                   \
 
40
                buf.c buf.h                                     \
 
41
                qparams.c qparams.h                             \
 
42
                capabilities.c capabilities.h                   \
22
43
                xml.c xml.h                                     \
 
44
                event.c event.h                                 \
 
45
                xen_unified.c xen_unified.h                     \
23
46
                xen_internal.c xen_internal.h                   \
24
47
                xs_internal.c xs_internal.h                     \
25
48
                xend_internal.c xend_internal.h                 \
 
49
                stats_linux.c stats_linux.h                     \
26
50
                sexpr.c sexpr.h                                 \
27
51
                virterror.c                                     \
28
52
                driver.h                                        \
29
53
                proxy_internal.c proxy_internal.h               \
30
 
                conf.c conf.h
 
54
                conf.c conf.h                                   \
 
55
                xm_internal.c xm_internal.h                     \
 
56
                remote_internal.c remote_internal.h             \
 
57
                bridge.c bridge.h                               \
 
58
                iptables.c iptables.h                           \
 
59
                uuid.c uuid.h                                   \
 
60
                qemu_driver.c qemu_driver.h                     \
 
61
                qemu_conf.c qemu_conf.h                         \
 
62
                openvz_conf.c openvz_conf.h                     \
 
63
                openvz_driver.c openvz_driver.h                 \
 
64
                lxc_driver.c lxc_driver.h                       \
 
65
                lxc_conf.c lxc_conf.h                           \
 
66
                lxc_container.c lxc_container.h                 \
 
67
                nodeinfo.h nodeinfo.c                           \
 
68
                util.c util.h
 
69
 
 
70
SERVER_SOURCES =                                                \
 
71
                ../qemud/remote_protocol.c ../qemud/remote_protocol.h
 
72
 
 
73
if WITH_LIBVIRTD
 
74
 
 
75
CLIENT_SOURCES +=                                               \
 
76
                storage_conf.h storage_conf.c                   \
 
77
                storage_driver.h storage_driver.c               \
 
78
                storage_backend.h storage_backend.c             \
 
79
                storage_backend_fs.h storage_backend_fs.c
 
80
 
 
81
if WITH_STORAGE_LVM
 
82
CLIENT_SOURCES += storage_backend_logical.h storage_backend_logical.c
 
83
else
 
84
EXTRA_DIST += storage_backend_logical.h storage_backend_logical.c
 
85
endif
 
86
 
 
87
if WITH_STORAGE_ISCSI
 
88
CLIENT_SOURCES +=  storage_backend_iscsi.h storage_backend_iscsi.c
 
89
else
 
90
EXTRA_DIST +=  storage_backend_iscsi.h storage_backend_iscsi.c
 
91
endif
 
92
 
 
93
if WITH_STORAGE_DISK
 
94
CLIENT_SOURCES += storage_backend_disk.h storage_backend_disk.c
 
95
else
 
96
EXTRA_DIST += storage_backend_disk.h storage_backend_disk.c
 
97
endif
 
98
 
 
99
endif
 
100
 
 
101
 
 
102
libvirt_la_SOURCES = $(CLIENT_SOURCES) $(SERVER_SOURCES)
 
103
libvirt_la_LIBADD = $(LIBXML_LIBS) $(GNUTLS_LIBS) $(SASL_LIBS) $(SELINUX_LIBS) \
 
104
                    $(NUMACTL_LIBS) \
 
105
                    @CYGWIN_EXTRA_LIBADD@ ../gnulib/lib/libgnu.la
 
106
libvirt_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libvirt_sym.version \
 
107
                     -version-info @LIBVIRT_VERSION_INFO@ \
 
108
                    $(COVERAGE_CFLAGS:-f%=-Wc,-f%) \
 
109
                    @CYGWIN_EXTRA_LDFLAGS@ @MINGW_EXTRA_LDFLAGS@
 
110
libvirt_la_CFLAGS = $(COVERAGE_CFLAGS) -DIN_LIBVIRT
 
111
 
 
112
# Create an automake "convenience library" version of libvirt_la,
 
113
# just for testing, since the test harness requires access to internal
 
114
# bits and pieces that we don't want to make publicly accessible.
 
115
noinst_LTLIBRARIES = libvirt_test.la
 
116
 
 
117
# Convert libvirt_sym.version
 
118
#      to libvirt_test_sym.version, and
 
119
# remove -version-info X.Y.Z (not needed since this is a convenience library.
 
120
test_LDFLAGS =                                          \
 
121
  $$(echo '$(libvirt_la_LDFLAGS)'                       \
 
122
     |sed 's!-Wl,--v.*_sym\.version!!'                  \
 
123
     |sed 's!-version-info @LIBVIRT_VERSION_INFO@!!')
 
124
 
 
125
# Just like the above, but with a slightly different set of public symbols.
 
126
libvirt_test_la_SOURCES = $(libvirt_la_SOURCES)
 
127
libvirt_test_la_LIBADD = $(libvirt_la_LIBADD)
 
128
libvirt_test_la_LDFLAGS = $(test_LDFLAGS)
 
129
libvirt_test_la_CFLAGS = $(COVERAGE_CFLAGS)
31
130
 
32
131
bin_PROGRAMS = virsh
33
132
 
34
 
virsh_SOURCES = virsh.c
35
 
virsh_LDFLAGS =
 
133
virsh_SOURCES = virsh.c console.c console.h util-lib.c util-lib.h
 
134
virsh_LDFLAGS = $(WARN_CFLAGS) $(COVERAGE_LDFLAGS)
36
135
virsh_DEPENDENCIES = $(DEPS)
37
136
virsh_LDADD = $(LDADDS) $(VIRSH_LIBS)
38
 
 
39
 
#
40
 
# target to ease building test programs
41
 
#
42
 
tst: tst.c
43
 
        $(CC) $(CFLAGS) -I../include -o tst tst.c .libs/libvirt.a -lxml2 -lxenstore -lpthread
 
137
virsh_CFLAGS = $(COVERAGE_CFLAGS) $(READLINE_CFLAGS)
 
138
 
 
139
if WITH_STORAGE_DISK
 
140
if WITH_LIBVIRTD
 
141
libexec_PROGRAMS = libvirt_parthelper
 
142
 
 
143
libvirt_parthelper_SOURCES = parthelper.c
 
144
libvirt_parthelper_LDFLAGS = $(WARN_CFLAGS) $(COVERAGE_LDCFLAGS)
 
145
libvirt_parthelper_LDADD = $(LIBPARTED_LIBS)
 
146
libvirt_parthelper_CFLAGS =  $(LIBPARTED_CFLAGS)
 
147
endif
 
148
else
 
149
EXTRA_DIST += parthelper.c
 
150
endif
 
151
 
 
152
# Create the /var/cache/libvirt directory when installing.
 
153
install-exec-local:
 
154
        $(MKDIR_P) $(DESTDIR)$(localstatedir)/cache/libvirt
 
155
 
 
156
CLEANFILES = *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda