2005-04-16 18:20:36 -04:00
|
|
|
#
|
|
|
|
# Makefile for some libs needed by zImage.
|
|
|
|
#
|
|
|
|
|
|
|
|
CFLAGS_kbd.o := -Idrivers/char
|
2006-04-04 10:56:10 -04:00
|
|
|
CFLAGS_vreset.o := -Iarch/ppc/boot/include
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2006-06-22 17:47:34 -04:00
|
|
|
zlib := inffast.c inflate.c inftrees.c
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
lib-y += $(zlib:.c=.o) div64.o
|
|
|
|
lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o
|
|
|
|
|
|
|
|
|
|
|
|
# zlib files needs header from their original place
|
|
|
|
EXTRA_CFLAGS += -Ilib/zlib_inflate
|
|
|
|
|
|
|
|
quiet_cmd_copy_zlib = COPY $@
|
|
|
|
cmd_copy_zlib = cat $< > $@
|
|
|
|
|
|
|
|
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
|
|
|
|
$(call cmd,copy_zlib)
|
|
|
|
|
|
|
|
clean-files := $(zlib)
|