Makefile 943 Bytes
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9 10
#
# Makefile for some libs needed in the kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

L_TARGET := lib.a

11 12
export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o \
	       crc32.o rbtree.o radix-tree.o
Linus Torvalds's avatar
Linus Torvalds committed
13

14
obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o \
15
	 bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o
Linus Torvalds's avatar
Linus Torvalds committed
16

Linus Torvalds's avatar
Linus Torvalds committed
17 18
obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
Linus Torvalds's avatar
Linus Torvalds committed
19 20 21 22 23

ifneq ($(CONFIG_HAVE_DEC_LOCK),y) 
  obj-y += dec_and_lock.o
endif

Linus Torvalds's avatar
Linus Torvalds committed
24
obj-$(CONFIG_CRC32)	+= crc32.o
Linus Torvalds's avatar
Linus Torvalds committed
25

26 27
obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
Linus Torvalds's avatar
Linus Torvalds committed
28

Linus Torvalds's avatar
Linus Torvalds committed
29
include $(TOPDIR)/drivers/net/Makefile.lib
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
30
include $(TOPDIR)/drivers/usb/class/Makefile.lib
Linus Torvalds's avatar
Linus Torvalds committed
31 32
include $(TOPDIR)/fs/Makefile.lib

Linus Torvalds's avatar
Linus Torvalds committed
33
include $(TOPDIR)/Rules.make