]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make: conditionally build filestore backends 1023/head
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:56:32 +0000 (12:56 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:58:37 +0000 (12:58 -0800)
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>
src/os/Makefile.am

index e83d44e091afe178b22d930b32ae1bf7bfdacf5c..f89b20894ac889449a8f0559aaf63830d73587b0 100644 (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 += \