aboutsummaryrefslogtreecommitdiff
path: root/arch/ppc/boot/lib/Makefile
blob: 2f995f712ec55c90857bd71539f5f34b90df64f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Makefile for some libs needed by zImage.
#

CFLAGS_kbd.o	:= -Idrivers/char
CFLAGS_vreset.o := -Iarch/ppc/boot/include

zlib  := inffast.c inflate.c inftrees.c
	 
lib-y += $(zlib:.c=.o) div64.o
lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o


# zlib files needs header from their original place
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)