David 'Digit' Turner | b9a8479 | 2009-05-07 20:39:04 +0200 | [diff] [blame^] | 1 | # 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 | |
| 20 | LOCAL_PATH:= $(call my-dir) |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | # measurements show that the ARM version of ZLib is about x1.17 faster |
| 24 | # than the thumb one... |
| 25 | LOCAL_ARM_MODE := arm |
| 26 | |
| 27 | LOCAL_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 | |
| 41 | LOCAL_MODULE:= libz |
| 42 | |
| 43 | LOCAL_CFLAGS+= -O3 -DUSE_MMAP |
| 44 | |
| 45 | include $(BUILD_STATIC_LIBRARY) |