Get it to compile again ...
[linux-2.6/linux-mips.git] / lib / Makefile
blob75af740c3743f8c92f89f4888c9729a1bfadc0ce
2 # Makefile for some libs needed in the kernel.
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).
9 L_TARGET := lib.a
11 obj-y := errno.o ctype.o string.o vsprintf.o cmdline.o \
12 bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \
13 kobject.o idr.o
15 obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
16 obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
17 obj-$(CONFIG_SMP) += percpu_counter.o
19 ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
20 obj-y += dec_and_lock.o
21 endif
23 obj-$(CONFIG_CRC32) += crc32.o
25 obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
26 obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
28 include $(TOPDIR)/drivers/net/Makefile.lib
29 include $(TOPDIR)/drivers/usb/Makefile.lib
30 include $(TOPDIR)/fs/Makefile.lib
31 include $(TOPDIR)/net/bluetooth/bnep/Makefile.lib
33 host-progs := gen_crc32table
34 clean-files := crc32table.h
36 $(obj)/crc32.o: $(obj)/crc32table.h
38 $(obj)/crc32table.h: $(obj)/gen_crc32table
39 ./$< > $@