blob: 98d4efaa81374c392513feee4fef55c9c476ea38 [file] [log] [blame]
Masahiro Yamada55a040e2018-01-26 11:42:01 +09001#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ZLIB_PATH := lib/zlib
8
9# Imported from zlib 1.2.11 (do not modify them)
10ZLIB_SOURCES := $(addprefix $(ZLIB_PATH)/, \
11 adler32.c \
12 crc32.c \
13 inffast.c \
14 inflate.c \
15 inftrees.c \
16 zutil.c)
17
18# Implemented for TF
19ZLIB_SOURCES += $(addprefix $(ZLIB_PATH)/, \
20 tf_gunzip.c)
21
22INCLUDES += -Iinclude/lib/zlib
23
24# REVISIT: the following flags need not be given globally
25TF_CFLAGS += -DZ_SOLO -DDEF_WBITS=31