1# Copyright (C) 2015 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 15LOCAL_PATH:=$(call my-dir) 16 17include $(CLEAR_VARS) 18cblas_SRC_FILES:= \ 19 src/cblas_caxpy.c \ 20 src/cblas_ccopy.c \ 21 src/cblas_cdotc_sub.c \ 22 src/cblas_cdotu_sub.c \ 23 src/cblas_cgbmv.c \ 24 src/cblas_cgemm.c \ 25 src/cblas_cgemv.c \ 26 src/cblas_cgerc.c \ 27 src/cblas_cgeru.c \ 28 src/cblas_chbmv.c \ 29 src/cblas_chemm.c \ 30 src/cblas_chemv.c \ 31 src/cblas_cher.c \ 32 src/cblas_cher2.c \ 33 src/cblas_cher2k.c \ 34 src/cblas_cherk.c \ 35 src/cblas_chpmv.c \ 36 src/cblas_chpr.c \ 37 src/cblas_chpr2.c \ 38 src/cblas_cscal.c \ 39 src/cblas_csscal.c \ 40 src/cblas_cswap.c \ 41 src/cblas_csymm.c \ 42 src/cblas_csyr2k.c \ 43 src/cblas_csyrk.c \ 44 src/cblas_ctbmv.c \ 45 src/cblas_ctbsv.c \ 46 src/cblas_ctpmv.c \ 47 src/cblas_ctpsv.c \ 48 src/cblas_ctrmm.c \ 49 src/cblas_ctrmv.c \ 50 src/cblas_ctrsm.c \ 51 src/cblas_ctrsv.c \ 52 src/cblas_dasum.c \ 53 src/cblas_daxpy.c \ 54 src/cblas_dcopy.c \ 55 src/cblas_ddot.c \ 56 src/cblas_dgbmv.c \ 57 src/cblas_dgemm.c \ 58 src/cblas_dgemv.c \ 59 src/cblas_dger.c \ 60 src/cblas_dnrm2.c \ 61 src/cblas_drot.c \ 62 src/cblas_drotg.c \ 63 src/cblas_drotm.c \ 64 src/cblas_drotmg.c \ 65 src/cblas_dsbmv.c \ 66 src/cblas_dscal.c \ 67 src/cblas_dsdot.c \ 68 src/cblas_dspmv.c \ 69 src/cblas_dspr.c \ 70 src/cblas_dspr2.c \ 71 src/cblas_dswap.c \ 72 src/cblas_dsymm.c \ 73 src/cblas_dsymv.c \ 74 src/cblas_dsyr.c \ 75 src/cblas_dsyr2.c \ 76 src/cblas_dsyr2k.c \ 77 src/cblas_dsyrk.c \ 78 src/cblas_dtbmv.c \ 79 src/cblas_dtbsv.c \ 80 src/cblas_dtpmv.c \ 81 src/cblas_dtpsv.c \ 82 src/cblas_dtrmm.c \ 83 src/cblas_dtrmv.c \ 84 src/cblas_dtrsm.c \ 85 src/cblas_dtrsv.c \ 86 src/cblas_dzasum.c \ 87 src/cblas_dznrm2.c \ 88 src/cblas_globals.c \ 89 src/cblas_icamax.c \ 90 src/cblas_idamax.c \ 91 src/cblas_isamax.c \ 92 src/cblas_izamax.c \ 93 src/cblas_sasum.c \ 94 src/cblas_saxpy.c \ 95 src/cblas_scasum.c \ 96 src/cblas_scnrm2.c \ 97 src/cblas_scopy.c \ 98 src/cblas_sdot.c \ 99 src/cblas_sdsdot.c \ 100 src/cblas_sgbmv.c \ 101 src/cblas_sgemm.c \ 102 src/cblas_sgemv.c \ 103 src/cblas_sger.c \ 104 src/cblas_snrm2.c \ 105 src/cblas_srot.c \ 106 src/cblas_srotg.c \ 107 src/cblas_srotm.c \ 108 src/cblas_srotmg.c \ 109 src/cblas_ssbmv.c \ 110 src/cblas_sscal.c \ 111 src/cblas_sspmv.c \ 112 src/cblas_sspr.c \ 113 src/cblas_sspr2.c \ 114 src/cblas_sswap.c \ 115 src/cblas_ssymm.c \ 116 src/cblas_ssymv.c \ 117 src/cblas_ssyr.c \ 118 src/cblas_ssyr2.c \ 119 src/cblas_ssyr2k.c \ 120 src/cblas_ssyrk.c \ 121 src/cblas_stbmv.c \ 122 src/cblas_stbsv.c \ 123 src/cblas_stpmv.c \ 124 src/cblas_stpsv.c \ 125 src/cblas_strmm.c \ 126 src/cblas_strmv.c \ 127 src/cblas_strsm.c \ 128 src/cblas_strsv.c \ 129 src/cblas_xerbla.c \ 130 src/cblas_zaxpy.c \ 131 src/cblas_zcopy.c \ 132 src/cblas_zdotc_sub.c \ 133 src/cblas_zdotu_sub.c \ 134 src/cblas_zdscal.c \ 135 src/cblas_zgbmv.c \ 136 src/cblas_zgemm.c \ 137 src/cblas_zgemv.c \ 138 src/cblas_zgerc.c \ 139 src/cblas_zgeru.c \ 140 src/cblas_zhbmv.c \ 141 src/cblas_zhemm.c \ 142 src/cblas_zhemv.c \ 143 src/cblas_zher.c \ 144 src/cblas_zher2.c \ 145 src/cblas_zher2k.c \ 146 src/cblas_zherk.c \ 147 src/cblas_zhpmv.c \ 148 src/cblas_zhpr.c \ 149 src/cblas_zhpr2.c \ 150 src/cblas_zscal.c \ 151 src/cblas_zswap.c \ 152 src/cblas_zsymm.c \ 153 src/cblas_zsyr2k.c \ 154 src/cblas_zsyrk.c \ 155 src/cblas_ztbmv.c \ 156 src/cblas_ztbsv.c \ 157 src/cblas_ztpmv.c \ 158 src/cblas_ztpsv.c \ 159 src/cblas_ztrmm.c \ 160 src/cblas_ztrmv.c \ 161 src/cblas_ztrsm.c \ 162 src/cblas_ztrsv.c \ 163 src/xerbla.c 164 165 166LOCAL_CLANG := true 167LOCAL_MODULE := libblas 168LOCAL_SRC_FILES := $(cblas_SRC_FILES) 169 170LOCAL_C_INCLUDES += external/cblas/include 171 172LOCAL_STATIC_LIBRARIES := libF77blas 173 174include $(BUILD_SHARED_LIBRARY) 175 176 177# Build libblas using API 9 toolchain for RS Support lib. 178include $(CLEAR_VARS) 179 180LOCAL_CLANG := true 181LOCAL_MODULE := libblasV8 182LOCAL_SDK_VERSION := 9 183LOCAL_NDK_STL_VARIANT := c++_static 184LOCAL_LDFLAGS += -ldl -Wl,--exclude-libs,libc++_static.a 185 186LOCAL_SRC_FILES := $(cblas_SRC_FILES) 187 188LOCAL_C_INCLUDES += external/cblas/include 189 190LOCAL_STATIC_LIBRARIES := libF77blasV8 191 192include $(BUILD_SHARED_LIBRARY) 193 194