initial commit with v2.6.9
[linux-2.6.9-moxart.git] / lib / Makefile
blobda5dca19c2c8baef22014d201c537d4858e69ee5
2 # Makefile for some libs needed in the kernel.
6 lib-y := errno.o ctype.o string.o vsprintf.o cmdline.o \
7 bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \
8 kobject.o kref.o idr.o div64.o parser.o int_sqrt.o \
9 bitmap.o extable.o
11 lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
12 lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
14 ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
15 lib-y += dec_and_lock.o
16 endif
18 obj-$(CONFIG_CRC_CCITT) += crc-ccitt.o
19 obj-$(CONFIG_CRC32) += crc32.o
20 obj-$(CONFIG_LIBCRC32C) += libcrc32c.o
21 obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
23 obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
24 obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
26 hostprogs-y := gen_crc32table
27 clean-files := crc32table.h
29 $(obj)/crc32.o: $(obj)/crc32table.h
31 quiet_cmd_crc32 = GEN $@
32 cmd_crc32 = $< > $@
34 $(obj)/crc32table.h: $(obj)/gen_crc32table
35 $(call cmd,crc32)