1#
2# Makefile for some libs needed by zImage.
3#
4
5zlib	:= inffast.c inflate.c inftrees.c
6
7lib-y	+= $(zlib:.c=.o) zmem.o
8
9ccflags-y	:= -Ilib/zlib_inflate
10ifdef CONFIG_FUNCTION_TRACER
11CFLAGS_REMOVE_inflate.o = -pg
12CFLAGS_REMOVE_zmem.o = -pg
13CFLAGS_REMOVE_inftrees.o = -pg
14CFLAGS_REMOVE_inffast.o = -pg
15endif
16
17
18quiet_cmd_copy_zlib = COPY    $@
19      cmd_copy_zlib = cat $< > $@
20
21$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
22	$(call cmd,copy_zlib)
23
24clean-files	:= $(zlib)
25