xref: /linux/arch/xtensa/boot/lib/Makefile (revision 478ba61afccd3a4d7ca662cadff1d35d183fe67d)
14bedea94SChris Zankel#
24bedea94SChris Zankel# Makefile for some libs needed by zImage.
34bedea94SChris Zankel#
44bedea94SChris Zankel
54f3865fbSRichard Purdiezlib	:= inffast.c inflate.c inftrees.c
64bedea94SChris Zankel
7e7d163f7SChris Zankellib-y	+= $(zlib:.c=.o) zmem.o
8e7d163f7SChris Zankel
93996eabbSmatt mooneyccflags-y	:= -Ilib/zlib_inflate
10*478ba61aSMax Filippovifdef CONFIG_FUNCTION_TRACER
11*478ba61aSMax FilippovCFLAGS_REMOVE_inflate.o = -pg
12*478ba61aSMax FilippovCFLAGS_REMOVE_zmem.o = -pg
13*478ba61aSMax FilippovCFLAGS_REMOVE_inftrees.o = -pg
14*478ba61aSMax FilippovCFLAGS_REMOVE_inffast.o = -pg
15*478ba61aSMax Filippovendif
16*478ba61aSMax Filippov
17e7d163f7SChris Zankel
18e7d163f7SChris Zankelquiet_cmd_copy_zlib = COPY    $@
19e7d163f7SChris Zankel      cmd_copy_zlib = cat $< > $@
20e7d163f7SChris Zankel
21e7d163f7SChris Zankel$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
22e7d163f7SChris Zankel	$(call cmd,copy_zlib)
23e7d163f7SChris Zankel
24e7d163f7SChris Zankelclean-files	:= $(zlib)
25