Makefile 340 字节
Newer Older
1 2 3 4
#
# Makefile for some libs needed by zImage.
#

5
zlib	:= inffast.c inflate.c inftrees.c
6

7 8 9 10 11 12 13 14 15 16 17
lib-y	+= $(zlib:.c=.o) zmem.o

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)