Makefile.inc.am 10.4 KB
Newer Older
1 2
# vim: filetype=automake

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
STORAGE_DRIVER_BACKEND_SOURCES = \
	storage/storage_backend.h \
	storage/storage_backend.c \
	$(NULL)

STORAGE_DRIVER_SOURCES = \
	storage/storage_driver.h \
	storage/storage_driver.c \
	$(STORAGE_DRIVER_BACKEND_SOURCES) \
	storage/storage_util.h \
	storage/storage_util.c \
	$(NULL)

STORAGE_DRIVER_FS_SOURCES = \
	storage/storage_backend_fs.h \
	storage/storage_backend_fs.c \
19 20 21
	$(NULL)

STORAGE_FILE_FS_SOURCES = \
22 23
	storage/storage_file_fs.h \
	storage/storage_file_fs.c \
24 25 26 27 28 29 30 31 32 33 34 35
	$(NULL)

STORAGE_DRIVER_LVM_SOURCES = \
	storage/storage_backend_logical.h \
	storage/storage_backend_logical.c \
	$(NULL)

STORAGE_DRIVER_ISCSI_SOURCES = \
	storage/storage_backend_iscsi.h \
	storage/storage_backend_iscsi.c \
	$(NULL)

36 37 38 39 40
STORAGE_DRIVER_ISCSI_DIRECT_SOURCES = \
	storage/storage_backend_iscsi_direct.h \
	storage/storage_backend_iscsi_direct.c \
	$(NULL)

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
STORAGE_DRIVER_SCSI_SOURCES = \
	storage/storage_backend_scsi.h \
	storage/storage_backend_scsi.c \
	$(NULL)

STORAGE_DRIVER_MPATH_SOURCES = \
	storage/storage_backend_mpath.h \
	storage/storage_backend_mpath.c \
	$(NULL)

STORAGE_DRIVER_DISK_SOURCES = \
	storage/storage_backend_disk.h \
	storage/storage_backend_disk.c \
	$(NULL)

STORAGE_DRIVER_RBD_SOURCES = \
	storage/storage_backend_rbd.h \
	storage/storage_backend_rbd.c \
	$(NULL)

STORAGE_DRIVER_SHEEPDOG_SOURCES = \
	storage/storage_backend_sheepdog.h \
	storage/storage_backend_sheepdog.c \
	storage/storage_backend_sheepdog_priv.h \
	$(NULL)

STORAGE_DRIVER_GLUSTER_SOURCES = \
	storage/storage_backend_gluster.h \
	storage/storage_backend_gluster.c \
70 71 72
	$(NULL)

STORAGE_FILE_GLUSTER_SOURCES = \
73 74
	storage/storage_file_gluster.h \
	storage/storage_file_gluster.c \
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
	$(NULL)

STORAGE_DRIVER_ZFS_SOURCES = \
	storage/storage_backend_zfs.h \
	storage/storage_backend_zfs.c \
	$(NULL)

STORAGE_DRIVER_VSTORAGE_SOURCES = \
	storage/storage_backend_vstorage.h \
	storage/storage_backend_vstorage.c \
	$(NULL)

STORAGE_HELPER_DISK_SOURCES = \
	storage/parthelper.c \
	$(NULL)

DRIVER_SOURCE_FILES += $(STORAGE_DRIVER_SOURCES)
STATEFUL_DRIVER_SOURCE_FILES += $(STORAGE_DRIVER_SOURCES)
EXTRA_DIST += \
	$(STORAGE_DRIVER_SOURCES) \
	$(STORAGE_DRIVER_FS_SOURCES) \
96
	$(STORAGE_FILE_FS_SOURCES) \
97 98
	$(STORAGE_DRIVER_LVM_SOURCES) \
	$(STORAGE_DRIVER_ISCSI_SOURCES) \
99
	$(STORAGE_DRIVER_ISCSI_DIRECT_SOURCES) \
100 101 102 103 104 105
	$(STORAGE_DRIVER_SCSI_SOURCES) \
	$(STORAGE_DRIVER_MPATH_SOURCES) \
	$(STORAGE_DRIVER_DISK_SOURCES) \
	$(STORAGE_DRIVER_RBD_SOURCES) \
	$(STORAGE_DRIVER_SHEEPDOG_SOURCES) \
	$(STORAGE_DRIVER_GLUSTER_SOURCES) \
106
	$(STORAGE_FILE_GLUSTER_SOURCES) \
107 108 109 110 111 112 113 114
	$(STORAGE_DRIVER_ZFS_SOURCES) \
	$(STORAGE_DRIVER_VSTORAGE_SOURCES) \
	$(STORAGE_HELPER_DISK_SOURCES) \
	$(NULL)

storagebackenddir = $(libdir)/libvirt/storage-backend
storagebackend_LTLIBRARIES =

115 116 117
storagefiledir = $(libdir)/libvirt/storage-file
storagefile_LTLIBRARIES =

118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
# Needed to keep automake quiet about conditionals
libvirt_driver_storage_impl_la_SOURCES =
libvirt_driver_storage_impl_la_CFLAGS = \
	-I$(srcdir)/access \
	-I$(srcdir)/conf \
	-I$(srcdir)/secret \
	$(AM_CFLAGS) \
	$(NULL)
libvirt_driver_storage_impl_la_LDFLAGS = $(AM_LDFLAGS)
libvirt_driver_storage_impl_la_LIBADD = $(SECDRIVER_LIBS) $(LIBXML_LIBS)
if WITH_BLKID
libvirt_driver_storage_impl_la_CFLAGS += $(BLKID_CFLAGS)
libvirt_driver_storage_impl_la_LIBADD += $(BLKID_LIBS)
endif WITH_BLKID

if WITH_STORAGE
noinst_LTLIBRARIES += libvirt_driver_storage_impl.la
libvirt_driver_storage_la_SOURCES =
libvirt_driver_storage_la_LIBADD = \
	libvirt_driver_storage_impl.la \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
mod_LTLIBRARIES += libvirt_driver_storage.la
libvirt_driver_storage_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
libvirt_driver_storage_impl_la_SOURCES += $(STORAGE_DRIVER_SOURCES)


libvirt_storage_backend_fs_la_SOURCES = $(STORAGE_DRIVER_FS_SOURCES)
libvirt_storage_backend_fs_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_fs.la
libvirt_storage_backend_fs_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_fs_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
158 159 160 161 162 163 164 165 166 167 168 169 170

libvirt_storage_file_fs_la_SOURCES = $(STORAGE_FILE_FS_SOURCES)
libvirt_storage_file_fs_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagefile_LTLIBRARIES += libvirt_storage_file_fs.la
libvirt_storage_file_fs_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_file_fs_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
endif WITH_STORAGE

if WITH_STORAGE_LVM
libvirt_storage_backend_logical_la_SOURCES = $(STORAGE_DRIVER_LVM_SOURCES)
libvirt_storage_backend_logical_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_logical.la
libvirt_storage_backend_logical_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_logical_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_LVM

if WITH_STORAGE_ISCSI
libvirt_storage_backend_iscsi_la_SOURCES = $(STORAGE_DRIVER_ISCSI_SOURCES)
libvirt_storage_backend_iscsi_la_CFLAGS = \
	-I$(srcdir)/conf \
	-I$(srcdir)/secret \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_iscsi.la
libvirt_storage_backend_iscsi_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_iscsi_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_ISCSI

204 205 206 207
if WITH_STORAGE_ISCSI_DIRECT
libvirt_storage_backend_iscsi_direct_la_SOURCES = $(STORAGE_DRIVER_ISCSI_DIRECT_SOURCES)
libvirt_storage_backend_iscsi_direct_la_CFLAGS = \
	-I$(srcdir)/conf \
208
	-I$(srcdir)/secret \
209 210 211 212 213 214 215 216 217
	$(LIBISCSI_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_iscsi-direct.la
libvirt_storage_backend_iscsi_direct_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_iscsi_direct_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
218
	$(LIBISCSI_LIBS) \
219 220 221
	$(NULL)
endif WITH_STORAGE_ISCSI_DIRECT

222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
if WITH_STORAGE_SCSI
libvirt_storage_backend_scsi_la_SOURCES = $(STORAGE_DRIVER_SCSI_SOURCES)
libvirt_storage_backend_scsi_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_scsi.la
libvirt_storage_backend_scsi_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_scsi_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_SCSI

if WITH_STORAGE_MPATH
libvirt_storage_backend_mpath_la_SOURCES = $(STORAGE_DRIVER_MPATH_SOURCES)
libvirt_storage_backend_mpath_la_LIBADD = \
	libvirt.la \
	$(DEVMAPPER_LIBS) \
	../gnulib/lib/libgnu.la \
	$(NULL)
libvirt_storage_backend_mpath_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(DEVMAPPER_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_mpath.la
libvirt_storage_backend_mpath_la_LDFLAGS = $(AM_LDFLAGS_MOD)
endif WITH_STORAGE_MPATH

if WITH_STORAGE_DISK
libvirt_storage_backend_disk_la_SOURCES = $(STORAGE_DRIVER_DISK_SOURCES)
libvirt_storage_backend_disk_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_disk.la
libvirt_storage_backend_disk_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_disk_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_DISK

if WITH_STORAGE_RBD
libvirt_storage_backend_rbd_la_SOURCES = $(STORAGE_DRIVER_RBD_SOURCES)
libvirt_storage_backend_rbd_la_LIBADD = \
	libvirt.la \
	$(LIBRBD_LIBS) \
	../gnulib/lib/libgnu.la \
	$(NULL)
libvirt_storage_backend_rbd_la_CFLAGS = \
	-I$(srcdir)/conf \
	-I$(srcdir)/secret \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_rbd.la
libvirt_storage_backend_rbd_la_LDFLAGS = $(AM_LDFLAGS_MOD)
endif WITH_STORAGE_RBD

if WITH_STORAGE_SHEEPDOG
libvirt_storage_backend_sheepdog_la_SOURCES = $(STORAGE_DRIVER_SHEEPDOG_SOURCES)
libvirt_storage_backend_sheepdog_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

libvirt_storage_backend_sheepdog_priv_la_SOURCES = $(STORAGE_DRIVER_SHEEPDOG_SOURCES)
libvirt_storage_backend_sheepdog_priv_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)
noinst_LTLIBRARIES += libvirt_storage_backend_sheepdog_priv.la

storagebackend_LTLIBRARIES += libvirt_storage_backend_sheepdog.la
libvirt_storage_backend_sheepdog_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_sheepdog_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_SHEEPDOG

if WITH_STORAGE_GLUSTER
libvirt_storage_backend_gluster_la_SOURCES = $(STORAGE_DRIVER_GLUSTER_SOURCES)
libvirt_storage_backend_gluster_la_LIBADD = \
	libvirt.la \
	$(GLUSTERFS_LIBS) \
	../gnulib/lib/libgnu.la \
	$(NULL)
libvirt_storage_backend_gluster_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(GLUSTERFS_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_gluster.la
libvirt_storage_backend_gluster_la_LDFLAGS = $(AM_LDFLAGS_MOD)
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338


libvirt_storage_file_gluster_la_SOURCES = $(STORAGE_FILE_GLUSTER_SOURCES)
libvirt_storage_file_gluster_la_LIBADD = \
	libvirt.la \
	$(GLUSTERFS_LIBS) \
	../gnulib/lib/libgnu.la \
	$(NULL)
libvirt_storage_file_gluster_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(GLUSTERFS_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)

storagefile_LTLIBRARIES += libvirt_storage_file_gluster.la
libvirt_storage_file_gluster_la_LDFLAGS = $(AM_LDFLAGS_MOD)
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
endif WITH_STORAGE_GLUSTER

if WITH_STORAGE_ZFS
libvirt_storage_backend_zfs_la_SOURCES = $(STORAGE_DRIVER_ZFS_SOURCES)
libvirt_storage_backend_zfs_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_zfs.la
libvirt_storage_backend_zfs_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_zfs_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_ZFS

if WITH_STORAGE_VSTORAGE
libvirt_storage_backend_vstorage_la_SOURCES = $(STORAGE_DRIVER_VSTORAGE_SOURCES)
libvirt_storage_backend_vstorage_la_CFLAGS = \
	-I$(srcdir)/conf \
	$(AM_CFLAGS) \
	$(NULL)

storagebackend_LTLIBRARIES += libvirt_storage_backend_vstorage.la
libvirt_storage_backend_vstorage_la_LDFLAGS = $(AM_LDFLAGS_MOD)
libvirt_storage_backend_vstorage_la_LIBADD = \
	libvirt.la \
	../gnulib/lib/libgnu.la \
	$(NULL)
endif WITH_STORAGE_VSTORAGE

if WITH_STORAGE_DISK
libexec_PROGRAMS += libvirt_parthelper

libvirt_parthelper_SOURCES = $(STORAGE_HELPER_DISK_SOURCES)
libvirt_parthelper_LDFLAGS = \
	$(AM_LDFLAGS) \
	$(PIE_LDFLAGS) \
	$(NULL)
libvirt_parthelper_LDADD = \
	$(LIBPARTED_LIBS) \
381
	libvirt.la \
382 383 384 385 386 387 388 389 390 391 392 393
	../gnulib/lib/libgnu.la \
	$(NULL)
if WITH_DTRACE_PROBES
libvirt_parthelper_LDADD += libvirt_probes.lo
endif WITH_DTRACE_PROBES

libvirt_parthelper_CFLAGS = \
	$(LIBPARTED_CFLAGS) \
	$(AM_CFLAGS) \
	$(PIE_CFLAGS) \
	$(NULL)
endif WITH_STORAGE_DISK