Whamcloud - gitweb
LU-3570 libcfs: accelerate crc32c with pclmulqdq
[fs/lustre-release.git] / libcfs / libcfs / autoMakefile.am
index 0e7819c..66154b1 100644 (file)
@@ -28,7 +28,7 @@
 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright (c) 2012, Whamcloud, Inc.
+# Copyright (c) 2012, Intel Corporation.
 #
 
 #
@@ -42,21 +42,21 @@ SUBDIRS += darwin
 endif
 DIST_SUBDIRS = linux util posix darwin
 
-if LIBLUSTRE
 noinst_LIBRARIES= libcfs.a
 libcfs_a_SOURCES= posix/posix-debug.c user-prim.c user-lock.c user-tcpip.c  \
                  prng.c user-bitops.c user-mem.c hash.c kernel_user_comm.c \
                  workitem.c fail.c libcfs_cpu.c libcfs_mem.c libcfs_lock.c \
                  posix/rbtree.c user-crypto.c posix/posix-crc32.c          \
-                 posix/posix-adler.c
+                 posix/posix-adler.c heap.c
 
-if ARCH_x86
-libcfs_a_SOURCES += user-crc32pclmul.c crc32-pclmul_asm.S
+if HAVE_PCLMULQDQ
+if NEED_PCLMULQDQ_CRC32
+libcfs_a_SOURCES += user-crc32pclmul.c linux/crc32-pclmul_asm.S
+endif
 endif
 
 libcfs_a_CPPFLAGS = $(LLCPPFLAGS)
 libcfs_a_CFLAGS = $(LLCFLAGS)
-endif
 
 lib_LIBRARIES = libcfsutil.a
 libcfsutil_a_SOURCES = nidstrings.c libcfs_string.c util/parser.c      \
@@ -79,7 +79,7 @@ nodist_libcfs_SOURCES = darwin/darwin-sync.c darwin/darwin-mem.c      \
        darwin/darwin-debug.c darwin/darwin-proc.c                      \
        darwin/darwin-tracefile.c darwin/darwin-module.c                \
        posix/posix-debug.c module.c tracefile.c nidstrings.c watchdog.c \
-       kernel_user_comm.c hash.c posix/rbtree.c
+       kernel_user_comm.c hash.c posix/rbtree.c heap.c
 
 libcfs_CFLAGS := $(EXTRA_KCFLAGS)
 libcfs_LDFLAGS := $(EXTRA_KLDFLAGS)
@@ -98,5 +98,5 @@ install-data-hook: $(install_data_hook)
 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ linux-*.c linux/*.o darwin/*.o libcfs
 EXTRA_DIST := $(libcfs-all-objs:%.o=%.c) Info.plist tracefile.h prng.c \
              user-lock.c user-tcpip.c user-bitops.c user-prim.c workitem.c \
-             user-mem.c kernel_user_comm.c fail.c libcfs_cpu.c \
+             user-mem.c kernel_user_comm.c fail.c libcfs_cpu.c heap.c \
              libcfs_mem.c libcfs_lock.c linux/linux-tracefile.h