Android.mk: Unsupported source file extensions for C files

In my Android.mk file, I have something like this

LOCAL_PATH:= $(call my-dir)    
include $(CLEAR_VARS)

LOCAL_MODULE    := testmodule
FILE_LIST := $(LOCAL_PATH)/include/md5/md5.
FILE_LIST += $(LOCAL_PATH)/include/md5/md5main.

FILE_LIST += $(wildcard $(LOCAL_PATH)/include/*.cpp)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)

include $(BUILD_SHARED_LIBRARY)

but when I run ndk-build- I get the following error

Android NDK: WARNING: Unsupported source file extensions in /Users/some/path/jni/Android.mk for module testmodule    
Android NDK:   include/md5/md5. include/md5/md5main.   

(I am using android-ndk-r8c on OSX 10.9.2)

How can I add a * .c file to Android.mk? What can i do wrong?

(I can place more Android.mk and Application.mk files if necessary)

+4
source share
1 answer

To move the response from the comments, for example, @greenapps said this works:

You could rename them to .cpp and if that is not possible
create a .cpp file in which you include both .c files.
0
source

All Articles