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