dlgTextEntry_Keyboard: rename to TouchTextEntry
[xcsoar.git] / build / zlib.mk
blob52e7c920b4eab47f81fcb5471efaa29c3d929ff9
1 ifeq ($(TARGET),UNIX)
3 # use the native zlib on UNIX
5 ifeq ($(TARGET_IS_DARWIN),y)
6 ZLIB_LDADD = /opt/local/lib/libz.a
7 ZLIB_LDLIBS =
8 else
9 ZLIB_LDADD =
10 ZLIB_LDLIBS = -lz
11 endif
13 ZLIB_CPPFLAGS =
15 else
16 ifeq ($(TARGET),ANDROID)
18 # use the native zlib on ANDROID, see
19 # android-ndk-*/docs/STABLE-APIS.html
21 ZLIB_CPPFLAGS =
22 ZLIB_LDADD = $(ANDROID_TARGET_ROOT)/usr/lib/libz.so
23 ZLIB_LDLIBS =
25 else
27 ZLIB_SRC_DIR = $(SRC)/zlib
28 ZLIB_SOURCES = \
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
36 ZLIB_LDLIBS =
38 ZLIB_CPPFLAGS_INTERNAL = -DHAVE_UNISTD_H
39 ZLIB_CPPFLAGS = -I$(ZLIB_SRC_DIR)
41 $(eval $(call link-library,zlib,ZLIB))
43 endif
44 endif
46 ZLIB_CPPFLAGS += -DZLIB_CONST