1#
2# Makefile for some libs needed in the kernel.
3#
4# Note! Dependencies are done automagically by 'make dep', which also
5# removes any old dependencies. DON'T put your own dependencies here
6# unless it's something special (ie not a .c file).
7#
8
9L_TARGET := lib.a
10
11export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o rbtree.o
12
13obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o \
14	 bust_spinlocks.o rbtree.o dump_stack.o
15
16obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
17obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
18
19ifneq ($(CONFIG_HAVE_DEC_LOCK),y) 
20  obj-y += dec_and_lock.o
21endif
22
23subdir-$(CONFIG_ZLIB_INFLATE) += zlib_inflate
24subdir-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate
25
26# Include the subdirs, if necessary.
27obj-y += $(join $(subdir-y),$(subdir-y:%=/%.o))
28
29include $(TOPDIR)/Rules.make
30