blob: a8937a776ecc59d8f86bd9b8aa689cc1703c712d [file] [log] [blame]
Masahiro Yamada55a040e2018-01-26 11:42:01 +09001#
Govindraj Rajaeee28e72023-08-01 15:52:40 -05002# Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
Masahiro Yamada55a040e2018-01-26 11:42:01 +09003#
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