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
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_NANO_VARS)
20
21LOCAL_MODULE := libnanomath_os
22LOCAL_MODULE_TAGS := optional
23
24LOCAL_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
31LOCAL_CFLAGS :=    \
32    -DFLT_EVAL_METHOD=0 \
33
34LOCAL_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
41LOCAL_EXPORT_C_INCLUDE_DIRS := \
42    $(LOCAL_PATH)/freebsd/inc \
43
44include $(BUILD_NANOHUB_OS_STATIC_LIBRARY)
45
46include $(CLEAR_NANO_VARS)
47
48LOCAL_MODULE := libnanomath
49LOCAL_MODULE_TAGS := optional
50
51LOCAL_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
57LOCAL_CFLAGS :=    \
58    -DFLT_EVAL_METHOD=0 \
59
60LOCAL_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
67LOCAL_EXPORT_C_INCLUDE_DIRS := \
68    $(LOCAL_PATH)/freebsd/inc \
69
70include $(BUILD_NANOHUB_APP_STATIC_LIBRARY)
71