1 # 2 # Copyright (C) 2016 The Android Open Source Project 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 LOCAL_PATH := $(call my-dir) 18 19 include $(CLEAR_NANO_VARS) 20 21 LOCAL_MODULE := libnanomath_os 22 LOCAL_MODULE_TAGS := optional 23 24 LOCAL_SRC_FILES := \ 25 arm/arm_sin_cos_f32.c \ 26 freebsd/lib/msun/src/e_atan2f.c \ 27 freebsd/lib/msun/src/e_expf.c \ 28 freebsd/lib/msun/src/s_atanf.c \ 29 30 31 LOCAL_CFLAGS := \ 32 -DFLT_EVAL_METHOD=0 \ 33 34 LOCAL_C_INCLUDES := \ 35 $(LOCAL_PATH)/freebsd/lib/msun/src \ 36 $(NANOHUB_OS_PATH)/inc \ 37 $(NANOHUB_OS_PATH)/src/platform/$(AUX_ARCH)/inc \ 38 $(NANOHUB_OS_PATH)/src/platform/$(AUX_ARCH)/inc/plat/cmsis \ 39 $(NANOHUB_OS_PATH)/src/cpu/$(AUX_CPU)/inc \ 40 41 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 42 $(LOCAL_PATH)/freebsd/inc \ 43 44 include $(BUILD_NANOHUB_OS_STATIC_LIBRARY) 45 46 include $(CLEAR_NANO_VARS) 47 48 LOCAL_MODULE := libnanomath 49 LOCAL_MODULE_TAGS := optional 50 51 LOCAL_SRC_FILES := \ 52 arm/arm_sin_cos_f32.c \ 53 freebsd/lib/msun/src/e_atan2f.c \ 54 freebsd/lib/msun/src/e_expf.c \ 55 freebsd/lib/msun/src/s_atanf.c \ 56 57 LOCAL_CFLAGS := \ 58 -DFLT_EVAL_METHOD=0 \ 59 60 LOCAL_C_INCLUDES := \ 61 $(LOCAL_PATH)/freebsd/lib/msun/src \ 62 $(NANOHUB_OS_PATH)/inc \ 63 $(NANOHUB_OS_PATH)/src/platform/$(AUX_ARCH)/inc \ 64 $(NANOHUB_OS_PATH)/src/platform/$(AUX_ARCH)/inc/plat/cmsis \ 65 $(NANOHUB_OS_PATH)/src/cpu/$(AUX_CPU)/inc \ 66 67 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 68 $(LOCAL_PATH)/freebsd/inc \ 69 70 include $(BUILD_NANOHUB_APP_STATIC_LIBRARY) 71