ia64/linux-2.6.18-xen.hg

annotate lib/Makefile @ 26:a533be77c572

Imported linux-2.6-xen-sparse from xen-unstable.hg 15200:bd3d6b4c52ec
author Ian Campbell <ian.campbell@xensource.com>
date Mon Jun 04 10:05:28 2007 +0100 (2007-06-04)
parents 831230e53067
children 3baca673faeb
rev   line source
ian@0 1 #
ian@0 2 # Makefile for some libs needed in the kernel.
ian@0 3 #
ian@0 4
ian@0 5 lib-y := errno.o ctype.o string.o vsprintf.o cmdline.o \
ian@0 6 bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \
ian@0 7 idr.o div64.o int_sqrt.o bitmap.o extable.o prio_tree.o \
ian@0 8 sha1.o
ian@0 9
ian@0 10 lib-$(CONFIG_SMP) += cpumask.o
ian@0 11
ian@0 12 lib-y += kobject.o kref.o kobject_uevent.o klist.o
ian@0 13
ian@0 14 obj-y += sort.o parser.o halfmd4.o iomap_copy.o debug_locks.o
ian@0 15
ian@0 16 ifeq ($(CONFIG_DEBUG_KOBJECT),y)
ian@0 17 CFLAGS_kobject.o += -DDEBUG
ian@0 18 CFLAGS_kobject_uevent.o += -DDEBUG
ian@0 19 endif
ian@0 20
ian@0 21 obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
ian@0 22 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
ian@0 23 lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
ian@0 24 lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
ian@0 25 lib-$(CONFIG_SEMAPHORE_SLEEPERS) += semaphore-sleepers.o
ian@0 26 lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o
ian@0 27 lib-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
ian@0 28 obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o
ian@0 29 obj-$(CONFIG_PLIST) += plist.o
ian@0 30 obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o
ian@0 31
ian@0 32 ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
ian@0 33 lib-y += dec_and_lock.o
ian@0 34 endif
ian@0 35
ian@0 36 obj-$(CONFIG_CRC_CCITT) += crc-ccitt.o
ian@0 37 obj-$(CONFIG_CRC16) += crc16.o
ian@0 38 obj-$(CONFIG_CRC32) += crc32.o
ian@0 39 obj-$(CONFIG_LIBCRC32C) += libcrc32c.o
ian@0 40 obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
ian@0 41 obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o
ian@0 42
ian@0 43 obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
ian@0 44 obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
ian@0 45 obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
ian@0 46
ian@0 47 obj-$(CONFIG_TEXTSEARCH) += textsearch.o
ian@0 48 obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o
ian@0 49 obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o
ian@0 50 obj-$(CONFIG_TEXTSEARCH_FSM) += ts_fsm.o
ian@0 51 obj-$(CONFIG_SMP) += percpu_counter.o
ian@0 52 obj-$(CONFIG_AUDIT_GENERIC) += audit.o
ian@0 53
ian@0 54 obj-$(CONFIG_SWIOTLB) += swiotlb.o
ian@26 55 ifeq ($(CONFIG_X86),y)
ian@26 56 swiotlb-$(CONFIG_XEN) := ../arch/i386/kernel/swiotlb.o
ian@26 57 endif
ian@26 58 ifeq ($(CONFIG_IA64),y)
ian@26 59 swiotlb-$(CONFIG_XEN) := ../arch/ia64/xen/swiotlb.o
ian@26 60 endif
ian@0 61
ian@0 62 hostprogs-y := gen_crc32table
ian@0 63 clean-files := crc32table.h
ian@0 64
ian@0 65 $(obj)/crc32.o: $(obj)/crc32table.h
ian@0 66
ian@0 67 quiet_cmd_crc32 = GEN $@
ian@0 68 cmd_crc32 = $< > $@
ian@0 69
ian@0 70 $(obj)/crc32table.h: $(obj)/gen_crc32table
ian@0 71 $(call cmd,crc32)