Emeric Vigier | eebea67 | 2012-08-06 17:36:30 -0400 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # We need to build this for both the device (as a shared library) |
| 4 | # and the host (as a static library for tools to use). |
| 5 | |
| 6 | common_SRC_FILES := samplerate.c \ |
| 7 | src_sinc.c \ |
| 8 | src_zoh.c \ |
| 9 | src_linear.c |
| 10 | |
| 11 | # For the device |
| 12 | # ===================================================== |
| 13 | |
| 14 | # Device shared library |
| 15 | include $(CLEAR_VARS) |
| 16 | |
| 17 | LOCAL_SRC_FILES := $(common_SRC_FILES) |
| 18 | LOCAL_CFLAGS += -Werror -g |
| 19 | LOCAL_LDFLAGS := |
| 20 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
| 21 | |
| 22 | LOCAL_MODULE:= libsamplerate |
| 23 | |
| 24 | include $(BUILD_SHARED_LIBRARY) |