make: conditionally build filestore backends

Each of btrfs and zfs backends are wrapped in if __linux__ and if
WITH_ZFS, respectively, resulting in empty object files and the
associated warnings. This builds them under the same conditions.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2013-12-30 12:56:32 -08:00
parent 9d41fd2c85
commit b4fc16c70e

View File

@ -1,6 +1,5 @@
libos_la_SOURCES = \
os/chain_xattr.cc \
os/BtrfsFileStoreBackend.cc \
os/DBObjectMap.cc \
os/FileJournal.cc \
os/FileStore.cc \
@ -14,8 +13,16 @@ libos_la_SOURCES = \
os/MemStore.cc \
os/ObjectStore.cc \
os/WBThrottle.cc \
os/ZFSFileStoreBackend.cc \
common/TrackedOp.cc
if LINUX
libos_la_SOURCES += os/BtrfsFileStoreBackend.cc
endif
if WITH_LIBZFS
libos_la_SOURCES += os/ZFSFileStoreBackend.cc
endif
noinst_LTLIBRARIES += libos.la
noinst_HEADERS += \