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 idr.o div64.o
10 lib-
$(CONFIG_RWSEM_GENERIC_SPINLOCK
) += rwsem-spinlock.o
11 lib-
$(CONFIG_RWSEM_XCHGADD_ALGORITHM
) += rwsem.o
12 lib-
$(CONFIG_SMP
) += percpu_counter.o
14 ifneq ($(CONFIG_HAVE_DEC_LOCK
),y
)
15 lib-y
+= dec_and_lock.o
18 obj-
$(CONFIG_CRC32
) += crc32.o
20 obj-
$(CONFIG_ZLIB_INFLATE
) += zlib_inflate
/
21 obj-
$(CONFIG_ZLIB_DEFLATE
) += zlib_deflate
/
23 include drivers
/net
/Makefile.lib
24 include drivers
/usb
/Makefile.lib
25 include fs
/Makefile.lib
26 include net
/bluetooth
/bnep
/Makefile.lib
27 include drivers
/media
/dvb
/dvb-core
/Makefile.lib
29 host-progs
:= gen_crc32table
30 clean-files
:= crc32table.h
32 $(obj
)/crc32.o
: $(obj
)/crc32table.h
34 quiet_cmd_crc32
= GEN
$@
37 $(obj
)/crc32table.h
: $(obj
)/gen_crc32table