2005-06-24 13:01:12 +08:00
|
|
|
#
|
|
|
|
# Makefile for some libs needed by zImage.
|
|
|
|
#
|
|
|
|
|
2006-06-23 05:47:34 +08:00
|
|
|
zlib := inffast.c inflate.c inftrees.c
|
2005-06-24 13:01:12 +08:00
|
|
|
|
2005-06-30 17:58:59 +08:00
|
|
|
lib-y += $(zlib:.c=.o) zmem.o
|
|
|
|
|
2011-01-14 22:12:34 +08:00
|
|
|
ccflags-y := -Ilib/zlib_inflate
|
2013-05-24 11:02:25 +08:00
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
|
|
CFLAGS_REMOVE_inflate.o = -pg
|
|
|
|
CFLAGS_REMOVE_zmem.o = -pg
|
|
|
|
CFLAGS_REMOVE_inftrees.o = -pg
|
|
|
|
CFLAGS_REMOVE_inffast.o = -pg
|
|
|
|
endif
|
|
|
|
|
2005-06-30 17:58:59 +08:00
|
|
|
|
|
|
|
quiet_cmd_copy_zlib = COPY $@
|
|
|
|
cmd_copy_zlib = cat $< > $@
|
|
|
|
|
|
|
|
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
|
|
|
|
$(call cmd,copy_zlib)
|
|
|
|
|
|
|
|
clean-files := $(zlib)
|