1dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
2dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# Copyright (C) 2012 The Android Open Source Project
3dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
4dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# Licensed under the Apache License, Version 2.0 (the "License");
5dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# you may not use this file except in compliance with the License.
6dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# You may obtain a copy of the License at
7dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
8dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#      http://www.apache.org/licenses/LICENSE-2.0
9dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
10dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# Unless required by applicable law or agreed to in writing, software
11dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# distributed under the License is distributed on an "AS IS" BASIS,
12dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# See the License for the specific language governing permissions and
14dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov# limitations under the License.
15dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
16dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#
17dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov
18dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy StepanovLOCAL_PATH := $(call my-dir)
19139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
20306946113efca741da8e33fd35edb1d7c29794ffStephen Hines
21139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# The following list contains platform-independent functionalities.
22139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao#
23cec0726037ef2716d4d131ae22764d00a4570bb7Shih-wei Liao# Skip apple_versioning.c since it is unused.
24139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# Skip atomic.c since it needs to be built separately according to the docs.
254d40231aa139331cbc0806bb1ff7475cd1dc9f04Shih-wei Liao# Skip gcc_personality_v0.c since it depends on libunwind.
26139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaolibcompiler_rt_common_SRC_FILES := \
272d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/absvdi2.c \
282d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/absvsi2.c \
292d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/absvti2.c \
302d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/adddf3.c \
312d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/addsf3.c \
325c072a6a116bb58827d71e2eb70097e8d1c23193Dan Albert  lib/builtins/addtf3.c \
332d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/addvdi3.c \
342d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/addvsi3.c \
352d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/addvti3.c \
362d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ashldi3.c \
372d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ashlti3.c \
382d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ashrdi3.c \
392d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ashrti3.c \
402d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/clear_cache.c \
412d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/clzdi2.c \
422d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/clzsi2.c \
432d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/clzti2.c \
442d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/cmpdi2.c \
452d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/cmpti2.c \
462d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/comparedf2.c \
472d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/comparesf2.c \
485148f96e201c3a60a8c029d8b2b48f40975d4cd9Dan Albert  lib/builtins/comparetf2.c \
492d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ctzdi2.c \
502d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ctzsi2.c \
512d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ctzti2.c \
522d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divdc3.c \
532d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divdf3.c \
542d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divdi3.c \
552d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divmoddi4.c \
562d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divmodsi4.c \
572d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divsc3.c \
582d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divsf3.c \
592d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divsi3.c \
602d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divti3.c \
612d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/divxc3.c \
622d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/eprintf.c \
632d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/extendsfdf2.c \
642d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ffsdi2.c \
652d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ffsti2.c \
662d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixdfdi.c \
672d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixdfsi.c \
682d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixdfti.c \
692d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixsfdi.c \
702d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixsfsi.c \
712d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixsfti.c \
722d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsdfdi.c \
732d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsdfsi.c \
742d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsdfti.c \
752d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunssfdi.c \
762d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunssfsi.c \
772d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunssfti.c \
782d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsxfdi.c \
792d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsxfsi.c \
802d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixunsxfti.c \
812d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixxfdi.c \
822d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/fixxfti.c \
832d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatdidf.c \
842d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatdisf.c \
852d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatdixf.c \
862d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatsidf.c \
872d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatsisf.c \
882d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floattidf.c \
892d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floattisf.c \
902d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floattixf.c \
912d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatundidf.c \
922d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatundisf.c \
932d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatundixf.c \
942d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatunsidf.c \
952d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatunsisf.c \
962d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatuntidf.c \
972d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatuntisf.c \
982d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/floatuntixf.c \
992d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/int_util.c \
1002d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/lshrdi3.c \
1012d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/lshrti3.c \
1022d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/moddi3.c \
1032d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/modsi3.c \
1042d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/modti3.c \
1052d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/muldc3.c \
1062d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/muldf3.c \
1072d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/muldi3.c \
1082d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulodi4.c \
1092d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulosi4.c \
1102d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/muloti4.c \
1112d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulsc3.c \
1122d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulsf3.c \
1135c072a6a116bb58827d71e2eb70097e8d1c23193Dan Albert  lib/builtins/multf3.c \
1142d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/multi3.c \
1152d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulvdi3.c \
1162d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulvsi3.c \
1172d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulvti3.c \
1182d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulxc3.c \
1192d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negdf2.c \
1202d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negdi2.c \
1212d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negsf2.c \
1222d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negti2.c \
1232d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negvdi2.c \
1242d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negvsi2.c \
1252d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/negvti2.c \
1262d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/paritydi2.c \
1272d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/paritysi2.c \
1282d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/parityti2.c \
1292d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/popcountdi2.c \
1302d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/popcountsi2.c \
1312d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/popcountti2.c \
1322d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/powidf2.c \
1332d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/powisf2.c \
1342d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/powitf2.c \
1352d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/powixf2.c \
1362d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/subdf3.c \
1372d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/subsf3.c \
1385c072a6a116bb58827d71e2eb70097e8d1c23193Dan Albert  lib/builtins/subtf3.c \
1392d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/subvdi3.c \
1402d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/subvsi3.c \
1412d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/subvti3.c \
1422d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/trampoline_setup.c \
1432d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/truncdfsf2.c \
1442d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ucmpdi2.c \
1452d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/ucmpti2.c \
1462d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivdi3.c \
1472d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivmoddi4.c \
1482d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivmodsi4.c \
1492d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivmodti4.c \
1502d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivsi3.c \
1512d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/udivti3.c \
1522d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/umoddi3.c \
1532d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/umodsi3.c \
1542d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/umodti3.c
155139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
15611f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hines# Only build enable_execute_stack.c on non-Windows hosts.
15711f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hinesifneq ($(HOST_OS),windows)
15811f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hineslibcompiler_rt_common_SRC_FILES += \
15911f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hines  lib/builtins/enable_execute_stack.c
16011f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hinesendif
16111f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hines
162139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# ARM-specific runtimes
163139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaolibcompiler_rt_arm_SRC_FILES := \
1642d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_dcmp.S \
1652d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_fcmp.S \
1662d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_idivmod.S \
1672d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_ldivmod.S \
1682d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_memcmp.S \
1692d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_memcpy.S \
1702d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_memmove.S \
1712d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_memset.S \
1722d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_uidivmod.S \
1732d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/aeabi_uldivmod.S \
1742d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/comparesf2.S \
1752d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/divmodsi4.S \
1762d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/divsi3.S \
1772d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/modsi3.S \
1782d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/udivmodsi4.S \
1792d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/udivsi3.S \
1802d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/arm/umodsi3.S
181139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
1826731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray# ARM64-specific runtimes
1836731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murraylibcompiler_rt_arm64_SRC_FILES :=
1846731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray
185139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# MIPS-specific runtimes
186139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaolibcompiler_rt_mips_SRC_FILES := # nothing to add
1875b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sandlibcompiler_rt_mips64_SRC_FILES := # nothing to add
188139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
189139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# X86-specific runtimes
190139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaolibcompiler_rt_x86_SRC_FILES := \
1912d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/ashldi3.S \
1922d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/ashrdi3.S \
1932d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/divdi3.S \
1942d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatdidf.S \
1952d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatdisf.S \
1962d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatdixf.S \
1972d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatundidf.S \
1982d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatundisf.S \
1992d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/floatundixf.S \
2002d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/lshrdi3.S \
2012d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/moddi3.S \
2022d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/muldi3.S \
2032d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/udivdi3.S \
2042d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/i386/umoddi3.S
205139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
2069939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov# X86_64-specific runtimes
2079939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkovlibcompiler_rt_x86_64_SRC_FILES := \
2082d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatundixf.S \
2092d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatdisf.c \
2102d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatdidf.c \
2112d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatdixf.c \
2122d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatundisf.S \
2132d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/x86_64/floatundidf.S
2149939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov
215139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# The following list contains functions that are not available in libgcc.a, so
216139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# we potentially need them when using a Clang-built component (e.g., -ftrapv
217139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# with 64-bit integer multiplies. See http://llvm.org/bugs/show_bug.cgi?id=14469.)
218139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaolibcompiler_rt_extras_SRC_FILES := \
2192d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  lib/builtins/mulodi4.c
220139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
221139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# $(1): arch
222139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaodefine get-libcompiler-rt-source-files
223139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao  $(if $(findstring $(1),arm),$(call get-libcompiler-rt-arm-source-files),
224139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao      $(if $(findstring $(1),mips),$(call get-libcompiler-rt-mips-source-files),
225139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao          $(if $(findstring $(1),x86),$(call get-libcompiler-rt-x86-source-files),
2269939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov             $(if $(findstring $(1),x86_64),$(call get-libcompiler-rt-x86_64-source-files),
2275534fc3b40c7d5c6949f454632afd7b56928ea7cPavel Chupin                 $(if $(findstring $(1),x32),$(call get-libcompiler-rt-x86-source-files),
2286731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray                    $(if $(findstring $(1),arm64),$(call get-libcompiler-rt-arm64-source-files),
2295b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand                       $(if $(findstring $(1),mips64),$(call get-libcompiler-rt-mips64-source-files),
2305b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand  $(error Unsupported ARCH $(1)))))))))
231139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoendef
232139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
233139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# $(1): source list
234139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# $(2): arch
235139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao#
2362d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines# If lib/builtins/<arch>/X.[cS] is included in the source list, we should filter out lib/builtins/X.c
237139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# in the result source list (i.e., use the one optimized for the arch.) Otherwise
238139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# there'll be multiple definitions for one symbol.
239139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaodefine filter-libcompiler-rt-common-source-files
2402d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  $(filter-out $(patsubst lib/builtins/$(strip $(2))/%.S,lib/builtins/%.c,\
2412d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                          $(filter lib/builtins/$(strip $(2))/%.S,$(1))) \
2422d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines               $(patsubst lib/builtins/$(strip $(2))/%.c,lib/builtins/%.c,\
2432d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                          $(filter lib/builtins/$(strip $(2))/%.c,$(1))),$(1))
244139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoendef
245139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
246ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liaodefine get-libcompiler-rt-arm-common-source-files
247139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao  $(call filter-libcompiler-rt-common-source-files,
248c8f5519892684eadc0cb1a7ef739905fa1ab4953Shih-wei Liao      $(libcompiler_rt_common_SRC_FILES) \
249ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao      $(libcompiler_rt_arm_SRC_FILES), arm)
250ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liaoendef
251ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao
252ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao# $(1): common runtime list
253ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao#
254ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao# Add ARM runtimes implemented in VFP
255ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liaodefine add-libcompiler-rt-arm-vfp-source-files
2562d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines  $(filter-out $(addprefix lib/builtins/,adddf3.c addsf3.c comparedf2.c comparesf2.c         \
2572d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                                         arm/comparesf2.S divdf3.c divsf3.c extendsfdf2.c    \
2582d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                                         fixdfsi.c fixsfsi.c fixunsdfsi.c fixunssfsi.c       \
2592d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                                         floatsidf.c floatsisf.c floatunsidf.c floatunsisf.c \
2602d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                                         muldf3.c mulsf3.c negdf2.c negsf2.c subdf3.c        \
2612d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines                                         subsf3.c truncdfsf2.c),$(1)) lib/builtins/arm/vfp_alias.S
262ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liaoendef
263ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao
264ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liaodefine get-libcompiler-rt-arm-source-files
265ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao  $(if $(findstring $(ARCH_ARM_HAVE_VFP),true),
266ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao      $(call add-libcompiler-rt-arm-vfp-source-files,
267ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao          $(call get-libcompiler-rt-arm-common-source-files)),
268ece62647281ee30b6bb01b0e052d58f41986a665Shih-wei Liao      $(call get-libcompiler-rt-arm-common-source-files))
269139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoendef
270139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
2716731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murraydefine get-libcompiler-rt-arm64-source-files
2726731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray  $(call filter-libcompiler-rt-common-source-files,
2736731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray      $(libcompiler_rt_common_SRC_FILES) \
2746731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray      $(libcompiler_rt_arm64_SRC_FILES),arm64)
2756731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murrayendef
2766731c5590dadf4d65fae4d75e03a724aba0cadc9Tim Murray
277139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaodefine get-libcompiler-rt-mips-source-files
278139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao  $(call filter-libcompiler-rt-common-source-files,
279c8f5519892684eadc0cb1a7ef739905fa1ab4953Shih-wei Liao      $(libcompiler_rt_common_SRC_FILES) \
280139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao      $(libcompiler_rt_mips_SRC_FILES),mips)
281139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoendef
282139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
2835b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sanddefine get-libcompiler-rt-mips64-source-files
2845b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand  $(call filter-libcompiler-rt-common-source-files,
2855b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand      $(libcompiler_rt_common_SRC_FILES) \
2865b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand      $(libcompiler_rt_mips64_SRC_FILES),mips64)
2875b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sandendef
2885b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane Sand
289139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaodefine get-libcompiler-rt-x86-source-files
290139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao  $(call filter-libcompiler-rt-common-source-files,
291c8f5519892684eadc0cb1a7ef739905fa1ab4953Shih-wei Liao      $(libcompiler_rt_common_SRC_FILES) \
292139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao      $(libcompiler_rt_x86_SRC_FILES),i386)
293139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoendef
294139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao
2959939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkovdefine get-libcompiler-rt-x86_64-source-files
2969939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov  $(call filter-libcompiler-rt-common-source-files,
2979939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov      $(libcompiler_rt_common_SRC_FILES) \
2989939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov      $(libcompiler_rt_x86_64_SRC_FILES),x86_64)
2999939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkovendef
3009939506f2e20a9989daf409ed1979f43de0a6222Alexey Volkov
301dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#=====================================================================
3027f489a3deb01ecca5038d02b71111bac313ee57fShih-wei Liao# Device Static Library: libcompiler_rt-extras
303dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov#=====================================================================
304dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov
305dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanovinclude $(CLEAR_VARS)
306dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov
3077f489a3deb01ecca5038d02b71111bac313ee57fShih-wei LiaoLOCAL_MODULE := libcompiler_rt-extras
308dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy StepanovLOCAL_MODULE_TAGS := optional
309dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy StepanovLOCAL_MODULE_CLASS := STATIC_LIBRARIES
310dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy StepanovLOCAL_CLANG := true
311139a106d12a5789561b3244bb34704eb618e4ffeShih-wei LiaoLOCAL_SRC_FILES := $(libcompiler_rt_extras_SRC_FILES)
31297ac43c7cf39e8ad2719b4f395093e7415280577Stephen HinesLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
313dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov
314dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanovinclude $(BUILD_STATIC_LIBRARY)
315dc3865b01cd56b703b77f58d5acff6529491eaf3Evgeniy Stepanov
31647ca89cea5ecba05b383df2fc816de66b3d961f6Colin Cross# Don't build compiler-rt without clang
31747ca89cea5ecba05b383df2fc816de66b3d961f6Colin Crossifneq ($(WITHOUT_TARGET_CLANG), true)
31847ca89cea5ecba05b383df2fc816de66b3d961f6Colin Cross
319139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao#=====================================================================
3207f489a3deb01ecca5038d02b71111bac313ee57fShih-wei Liao# Device Static Library: libcompiler_rt
321139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao#=====================================================================
32275d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
32375d873d8fc8341b2c48954737995b49e0bc1ab6cColin Crossinclude $(CLEAR_VARS)
32475d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
32575d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_MODULE := libcompiler_rt
32675d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_CFLAGS_arm += -D__ARM_EABI__
32775d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_ASFLAGS := -integrated-as
32875d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_CLANG := true
32975d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_SRC_FILES_arm := $(call get-libcompiler-rt-source-files,arm)
3306731c5590dadf4d65fae4d75e03a724aba0cadc9Tim MurrayLOCAL_SRC_FILES_arm64 := $(call get-libcompiler-rt-source-files,arm64)
33175d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_SRC_FILES_mips := $(call get-libcompiler-rt-source-files,mips)
3325b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane SandLOCAL_SRC_FILES_mips64 := $(call get-libcompiler-rt-source-files,mips64)
33375d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_SRC_FILES_x86 := $(call get-libcompiler-rt-source-files,x86)
33475d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_SRC_FILES_x86_64 := $(call get-libcompiler-rt-source-files,x86_64)
3355b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane SandLOCAL_MODULE_TARGET_ARCH := arm arm64 mips mips64 x86 x86_64
33675d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
33775d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
33875d873d8fc8341b2c48954737995b49e0bc1ab6cColin Crossinclude $(BUILD_STATIC_LIBRARY)
33975d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
340fba76918950962438ed40f78365947bf9927b24cShih-wei Liao#=====================================================================
34195b6e9a2552f005857c81626638dfd98cc8665dfDan Albert# Host Static Library: libcompiler_rt
34295b6e9a2552f005857c81626638dfd98cc8665dfDan Albert#=====================================================================
34395b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
34495b6e9a2552f005857c81626638dfd98cc8665dfDan Albertinclude $(CLEAR_VARS)
34595b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
34695b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_MODULE := libcompiler_rt
34795b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_ASFLAGS := -integrated-as
34895b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_CLANG := true
34995b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_SRC_FILES := $(call get-libcompiler-rt-source-files,x86_64)
35095b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
351a217f3e4ab712f0bbcf6f60c800fce3fabc99fd0Ian RogersLOCAL_MULTILIB := both
35295b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
35395b6e9a2552f005857c81626638dfd98cc8665dfDan Albertinclude $(BUILD_HOST_STATIC_LIBRARY)
35495b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
35595b6e9a2552f005857c81626638dfd98cc8665dfDan Albert#=====================================================================
356ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov# Device Static Library: libprofile_rt
357ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov#=====================================================================
358ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov
359ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanovinclude $(CLEAR_VARS)
360ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov
361ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy IvanovLOCAL_MODULE = libprofile_rt
362ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy IvanovLOCAL_SRC_FILES = lib/profile/GCDAProfiling.c
363ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov
364ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanovinclude $(BUILD_STATIC_LIBRARY)
365ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov
366ba9a7b37ffac9156693ae0ceeef37b1f167cb1d6Dmitriy Ivanov#=====================================================================
367fba76918950962438ed40f78365947bf9927b24cShih-wei Liao# Device Shared Library: libcompiler_rt
368fba76918950962438ed40f78365947bf9927b24cShih-wei Liao#=====================================================================
369e3c30bfc1e34e323bf83ed3f062e4251778007b2Serban Constantinescu
37075d873d8fc8341b2c48954737995b49e0bc1ab6cColin Crossinclude $(CLEAR_VARS)
37175d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
37275d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_MODULE := libcompiler_rt
37375d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
37475d873d8fc8341b2c48954737995b49e0bc1ab6cColin CrossLOCAL_WHOLE_STATIC_LIBRARIES := libcompiler_rt
3755b87b3dc7a3f90b393b6020e9dec79aa299b13c3Duane SandLOCAL_MODULE_TARGET_ARCH := arm arm64 mips mips64 x86 x86_64
37675d873d8fc8341b2c48954737995b49e0bc1ab6cColin Cross
37775d873d8fc8341b2c48954737995b49e0bc1ab6cColin Crossinclude $(BUILD_SHARED_LIBRARY)
378fba76918950962438ed40f78365947bf9927b24cShih-wei Liao
379139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liao# Build ASan
380139a106d12a5789561b3244bb34704eb618e4ffeShih-wei Liaoinclude $(LOCAL_PATH)/lib/asan/Android.mk
3814b4f557b295efe886cb7b4199f136afa9c6db6e8Tim Murray
38295b6e9a2552f005857c81626638dfd98cc8665dfDan Albert#=====================================================================
38395b6e9a2552f005857c81626638dfd98cc8665dfDan Albert# Host Shared Library: libcompiler_rt
38495b6e9a2552f005857c81626638dfd98cc8665dfDan Albert#=====================================================================
38595b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
38695b6e9a2552f005857c81626638dfd98cc8665dfDan Albertinclude $(CLEAR_VARS)
38795b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
38895b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_MODULE := libcompiler_rt
38995b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
39095b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_WHOLE_STATIC_LIBRARIES := libcompiler_rt
39195b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_CPPFLAGS := -nostdinc++
39211f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hinesifneq ($(HOST_OS),windows)
39395b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_LDFLAGS := -nodefaultlibs
39495b6e9a2552f005857c81626638dfd98cc8665dfDan AlbertLOCAL_LDLIBS := -lc -lm
39511f8ffed1d651dcafcb4f85ffc561a9eac13f844Stephen Hinesendif
396a217f3e4ab712f0bbcf6f60c800fce3fabc99fd0Ian RogersLOCAL_MULTILIB := both
39795b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
39895b6e9a2552f005857c81626638dfd98cc8665dfDan Albertinclude $(BUILD_HOST_SHARED_LIBRARY)
39995b6e9a2552f005857c81626638dfd98cc8665dfDan Albert
40047ca89cea5ecba05b383df2fc816de66b3d961f6Colin Crossendif
401