Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 2 | # Copyright (C) 2011 The Android Open Source Project |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # |
| 17 | |
| 18 | LOCAL_PATH := $(call my-dir) |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 19 | include $(LOCAL_PATH)/../libbcc-config.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 20 | |
| 21 | #===================================================================== |
| 22 | # Device Static Library: libbccCompilerRT |
| 23 | #===================================================================== |
| 24 | |
Logan Chien | 21392f0 | 2011-11-26 20:32:01 +0800 | [diff] [blame] | 25 | ifneq ($(TARGET_ARCH),mips) |
| 26 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 27 | include $(CLEAR_VARS) |
| 28 | |
| 29 | LOCAL_MODULE := libbccCompilerRT |
| 30 | LOCAL_MODULE_TAGS := optional |
| 31 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 32 | |
| 33 | ifeq ($(TARGET_ARCH),arm) |
| 34 | LOCAL_SRC_FILES += \ |
| 35 | lib/arm/adddf3vfp.S \ |
| 36 | lib/arm/addsf3vfp.S \ |
| 37 | lib/arm/divdf3vfp.S \ |
| 38 | lib/arm/divsf3vfp.S \ |
| 39 | lib/arm/eqdf2vfp.S \ |
| 40 | lib/arm/eqsf2vfp.S \ |
| 41 | lib/arm/extendsfdf2vfp.S \ |
| 42 | lib/arm/fixdfsivfp.S \ |
| 43 | lib/arm/fixsfsivfp.S \ |
| 44 | lib/arm/fixunsdfsivfp.S \ |
| 45 | lib/arm/fixunssfsivfp.S \ |
| 46 | lib/arm/floatsidfvfp.S \ |
| 47 | lib/arm/floatsisfvfp.S \ |
| 48 | lib/arm/floatunssidfvfp.S \ |
| 49 | lib/arm/floatunssisfvfp.S \ |
| 50 | lib/arm/gedf2vfp.S \ |
| 51 | lib/arm/gesf2vfp.S \ |
| 52 | lib/arm/gtdf2vfp.S \ |
| 53 | lib/arm/gtsf2vfp.S \ |
| 54 | lib/arm/ledf2vfp.S \ |
| 55 | lib/arm/lesf2vfp.S \ |
| 56 | lib/arm/ltdf2vfp.S \ |
| 57 | lib/arm/ltsf2vfp.S \ |
| 58 | lib/arm/muldf3vfp.S \ |
| 59 | lib/arm/mulsf3vfp.S \ |
| 60 | lib/arm/nedf2vfp.S \ |
| 61 | lib/arm/negdf2vfp.S \ |
| 62 | lib/arm/negsf2vfp.S \ |
| 63 | lib/arm/nesf2vfp.S \ |
| 64 | lib/arm/subdf3vfp.S \ |
| 65 | lib/arm/subsf3vfp.S \ |
| 66 | lib/arm/truncdfsf2vfp.S \ |
| 67 | lib/arm/unorddf2vfp.S \ |
| 68 | lib/arm/unordsf2vfp.S |
| 69 | else |
| 70 | ifeq ($(TARGET_ARCH),x86) # We don't support x86-64 right now |
| 71 | LOCAL_SRC_FILES += \ |
| 72 | lib/i386/ashldi3.S \ |
| 73 | lib/i386/ashrdi3.S \ |
| 74 | lib/i386/divdi3.S \ |
| 75 | lib/i386/floatdidf.S \ |
| 76 | lib/i386/floatdisf.S \ |
| 77 | lib/i386/floatdixf.S \ |
| 78 | lib/i386/floatundidf.S \ |
| 79 | lib/i386/floatundisf.S \ |
| 80 | lib/i386/floatundixf.S \ |
| 81 | lib/i386/lshrdi3.S \ |
| 82 | lib/i386/moddi3.S \ |
| 83 | lib/i386/muldi3.S \ |
| 84 | lib/i386/udivdi3.S \ |
| 85 | lib/i386/umoddi3.S |
| 86 | else |
| 87 | $(error Unsupported TARGET_ARCH $(TARGET_ARCH)) |
| 88 | endif |
| 89 | endif |
| 90 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 91 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 92 | include $(BUILD_STATIC_LIBRARY) |
Logan Chien | 21392f0 | 2011-11-26 20:32:01 +0800 | [diff] [blame] | 93 | |
| 94 | endif # ifneq($(TARGET_ARCH),mips) |