zlib.mk 549 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ZLIB_PATH := lib/zlib
  7. # Imported from zlib 1.2.11 (do not modify them)
  8. ZLIB_SOURCES := $(addprefix $(ZLIB_PATH)/, \
  9. adler32.c \
  10. crc32.c \
  11. inffast.c \
  12. inflate.c \
  13. inftrees.c \
  14. zutil.c)
  15. # Implemented for TF
  16. ZLIB_SOURCES += $(addprefix $(ZLIB_PATH)/, \
  17. tf_gunzip.c)
  18. INCLUDES += -Iinclude/lib/zlib
  19. # REVISIT: the following flags need not be given globally
  20. TF_CFLAGS += -DZ_SOLO -DDEF_WBITS=31