summaryrefslogtreecommitdiff
path: root/lib/zlib/zlib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zlib/zlib.mk')
-rw-r--r--lib/zlib/zlib.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/zlib/zlib.mk b/lib/zlib/zlib.mk
index a8937a776..9c0458fad 100644
--- a/lib/zlib/zlib.mk
+++ b/lib/zlib/zlib.mk
@@ -7,7 +7,7 @@
ZLIB_PATH := lib/zlib
# Imported from zlib 1.2.11 (do not modify them)
-ZLIB_SOURCES := $(addprefix $(ZLIB_PATH)/, \
+LIBZLIB_SRCS := $(addprefix $(ZLIB_PATH)/, \
adler32.c \
crc32.c \
inffast.c \
@@ -16,10 +16,10 @@ ZLIB_SOURCES := $(addprefix $(ZLIB_PATH)/, \
zutil.c)
# Implemented for TF
-ZLIB_SOURCES += $(addprefix $(ZLIB_PATH)/, \
+LIBZLIB_SRCS += $(addprefix $(ZLIB_PATH)/, \
tf_gunzip.c)
INCLUDES += -Iinclude/lib/zlib
-# REVISIT: the following flags need not be given globally
-TF_CFLAGS += -DZ_SOLO -DDEF_WBITS=31
+LIBZLIB_CFLAGS := -DZ_SOLO -DDEF_WBITS=31
+$(eval $(call MAKE_LIB,zlib))