blob: 88446a735735fb31832c5a76db0655ec9b370a7a [file] [log] [blame]
David 'Digit' Turnerb9a84792009-05-07 20:39:04 +02001# Copyright (C) 2009 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16# this is a very simple example that shows how to build a static library
17# and an executable that links to it.
18#
19
20LOCAL_PATH:= $(call my-dir)
21include $(CLEAR_VARS)
22
23# measurements show that the ARM version of ZLib is about x1.17 faster
24# than the thumb one...
25LOCAL_ARM_MODE := arm
26
27LOCAL_SRC_FILES:= \
28 adler32.c \
29 compress.c \
30 crc32.c \
31 gzio.c \
32 uncompr.c \
33 deflate.c \
34 trees.c \
35 zutil.c \
36 inflate.c \
37 infback.c \
38 inftrees.c \
39 inffast.c
40
41LOCAL_MODULE:= libz
42
43LOCAL_CFLAGS+= -O3 -DUSE_MMAP
44
45include $(BUILD_STATIC_LIBRARY)