1cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# Copyright (C) 2008 The Android Open Source Project 2cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# 3cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# Licensed under the Apache License, Version 2.0 (the "License"); 4cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# you may not use this file except in compliance with the License. 5cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# You may obtain a copy of the License at 6cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# 7cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# http://www.apache.org/licenses/LICENSE-2.0 8cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# 9cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# Unless required by applicable law or agreed to in writing, software 10cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# distributed under the License is distributed on an "AS IS" BASIS, 11cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# See the License for the specific language governing permissions and 13cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# limitations under the License. 14cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 15cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_PATH := $(call my-dir) 16cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Projectinclude $(CLEAR_VARS) 17cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 18cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# measurements show that the ARM version of ZLib is about x1.17 faster 19cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project# than the thumb one... 20cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_ARM_MODE := arm 21cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 22cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Projectbzlib_files := \ 23cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project blocksort.c \ 24cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project huffman.c \ 25cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project crctable.c \ 26cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project randtable.c \ 27cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project compress.c \ 28cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project decompress.c \ 29cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project bzlib.c 30cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 31cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_SRC_FILES := $(bzlib_files) 32cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_MODULE := libbz 33cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_CFLAGS += -O3 -DUSE_MMAP 34c1e644eb581aa1a67496cdace516b57d6c280d30Chris Dearmanifeq ($(TARGET_ARCH),arm) 35048dacdca43eed1534689ececcf2781c63e1e4baYing Wang LOCAL_SDK_VERSION := 9 36048dacdca43eed1534689ececcf2781c63e1e4baYing Wangendif 37cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 38cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 39cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Projectinclude $(CLEAR_VARS) 40cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Project 41cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_SRC_FILES := $(bzlib_files) 42cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_MODULE := libbz 43cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source ProjectLOCAL_CFLAGS += -O3 -DUSE_MMAP 44cfb3b2780016b4e9ab4849e22d9c3acbaf535248The Android Open Source Projectinclude $(BUILD_HOST_STATIC_LIBRARY) 45