VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / lib / Makefile
1 #
2 # Makefile for some libs needed in the kernel.
3 #
4
5
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 idr.o div64.o parser.o int_sqrt.o \
9          bitmap.o extable.o
10
11 # hack for now till some static code uses krefs, then it can move up above...
12 obj-y += kref.o
13
14 lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
15 lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
16
17 ifneq ($(CONFIG_HAVE_DEC_LOCK),y) 
18   lib-y += dec_and_lock.o
19 endif
20
21 obj-$(CONFIG_CRC_CCITT) += crc-ccitt.o
22 obj-$(CONFIG_CRC32)     += crc32.o
23 obj-$(CONFIG_LIBCRC32C) += libcrc32c.o
24
25 obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
26 obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
27
28 host-progs      := gen_crc32table
29 clean-files     := crc32table.h
30
31 $(obj)/crc32.o: $(obj)/crc32table.h
32
33 quiet_cmd_crc32 = GEN     $@
34       cmd_crc32 = $< > $@
35
36 $(obj)/crc32table.h: $(obj)/gen_crc32table
37         $(call cmd,crc32)