Linux-2.6.12-rc2
[linux-2.6/next.git] / arch / ppc / boot / lib / Makefile
blobd4077e69086f8b29a8ac1279e2ebce97d48fb665
2 # Makefile for some libs needed by zImage.
5 CFLAGS_kbd.o := -Idrivers/char
6 CFLAGS_vreset.o := -I$(srctree)/arch/ppc/boot/include
8 zlib := infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c
10 lib-y += $(zlib:.c=.o) div64.o
11 lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o
14 # zlib files needs header from their original place
15 EXTRA_CFLAGS += -Ilib/zlib_inflate
17 quiet_cmd_copy_zlib = COPY $@
18 cmd_copy_zlib = cat $< > $@
20 $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
21 $(call cmd,copy_zlib)
23 clean-files := $(zlib)