11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for some libs needed in the kernel. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldslib-y := errno.o ctype.o string.o vsprintf.o cmdline.o \ 61da177e4SLinus Torvalds bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \ 79a19fea4Smochel@digitalimplant.org idr.o div64.o int_sqrt.o bitmap.o extable.o prio_tree.o \ 89a19fea4Smochel@digitalimplant.org sha1.o halfmd4.o 99a19fea4Smochel@digitalimplant.org 109a19fea4Smochel@digitalimplant.orglib-y += kobject.o kref.o kobject_uevent.o klist.o 111da177e4SLinus Torvalds 121da177e4SLinus Torvaldsobj-y += sort.o parser.o 131da177e4SLinus Torvalds 141da177e4SLinus Torvaldsifeq ($(CONFIG_DEBUG_KOBJECT),y) 151da177e4SLinus TorvaldsCFLAGS_kobject.o += -DDEBUG 161da177e4SLinus TorvaldsCFLAGS_kobject_uevent.o += -DDEBUG 171da177e4SLinus Torvaldsendif 181da177e4SLinus Torvalds 191da177e4SLinus Torvaldslib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o 201da177e4SLinus Torvaldslib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o 211da177e4SLinus Torvaldslib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o 221da177e4SLinus Torvaldsobj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o 2339c715b7SIngo Molnarobj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o 241da177e4SLinus Torvalds 251da177e4SLinus Torvaldsifneq ($(CONFIG_HAVE_DEC_LOCK),y) 261da177e4SLinus Torvalds lib-y += dec_and_lock.o 271da177e4SLinus Torvaldsendif 281da177e4SLinus Torvalds 291da177e4SLinus Torvaldsobj-$(CONFIG_CRC_CCITT) += crc-ccitt.o 301da177e4SLinus Torvaldsobj-$(CONFIG_CRC32) += crc32.o 311da177e4SLinus Torvaldsobj-$(CONFIG_LIBCRC32C) += libcrc32c.o 321da177e4SLinus Torvaldsobj-$(CONFIG_GENERIC_IOMAP) += iomap.o 33f14f75b8SJes Sorensenobj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o 341da177e4SLinus Torvalds 351da177e4SLinus Torvaldsobj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/ 361da177e4SLinus Torvaldsobj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/ 371da177e4SLinus Torvaldsobj-$(CONFIG_REED_SOLOMON) += reed_solomon/ 381da177e4SLinus Torvalds 392de4ff7bSThomas Graflib-$(CONFIG_TEXTSEARCH) += textsearch.o 40df3fb93aSThomas Grafobj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o 416408f79cSThomas Grafobj-$(CONFIG_TEXTSEARCH_FSM) += ts_fsm.o 422de4ff7bSThomas Graf 431da177e4SLinus Torvaldshostprogs-y := gen_crc32table 441da177e4SLinus Torvaldsclean-files := crc32table.h 451da177e4SLinus Torvalds 461da177e4SLinus Torvalds$(obj)/crc32.o: $(obj)/crc32table.h 471da177e4SLinus Torvalds 481da177e4SLinus Torvaldsquiet_cmd_crc32 = GEN $@ 491da177e4SLinus Torvalds cmd_crc32 = $< > $@ 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds$(obj)/crc32table.h: $(obj)/gen_crc32table 521da177e4SLinus Torvalds $(call cmd,crc32) 53