3 # use the native zlib on UNIX
5 ifeq ($(TARGET_IS_DARWIN
),y
)
6 ZLIB_LDADD
= /opt
/local
/lib
/libz.a
16 ifeq ($(TARGET
),ANDROID
)
18 # use the native zlib on ANDROID, see
19 # android-ndk-*/docs/STABLE-APIS.html
22 ZLIB_LDADD
= $(ANDROID_TARGET_ROOT
)/usr
/lib
/libz.so
27 ZLIB_SRC_DIR
= $(SRC
)/zlib
29 $(ZLIB_SRC_DIR
)/adler32.c \
30 $(ZLIB_SRC_DIR
)/crc32.c \
31 $(ZLIB_SRC_DIR
)/inffast.c \
32 $(ZLIB_SRC_DIR
)/inflate.c \
33 $(ZLIB_SRC_DIR
)/inftrees.c \
34 $(ZLIB_SRC_DIR
)/zutil.c
38 ZLIB_CPPFLAGS_INTERNAL
= -DHAVE_UNISTD_H
39 ZLIB_CPPFLAGS
= -I
$(ZLIB_SRC_DIR
)
41 $(eval
$(call link-library
,zlib
,ZLIB
))
46 ZLIB_CPPFLAGS
+= -DZLIB_CONST