I try to use wilcards in Android.mk with help of this answer
https://stackoverflow.com/a/8459242/1039175
But get and error:
make: No rule to make target jni/jni/abyss_engine.c', needed by
obj/local/armeabi/objs-debug/AbyssEngine/jni/abyss_engine.o' - this error means no source file found and it's natural because where no jni subfolder in jni folder
Where comes an extra jni in path and why? My source files just in jni folder without any subfolders, how to fix it?
My Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := AbyssEngine
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.c)
(abyss_engine.c asset_manager.c jni_bridge.c shader_manager.c input_manager.c works fine)
LOCAL_LDLIBS := -llog -lGLESv2
LOCAL_CFLAGS := -Werror
include $(BUILD_SHARED_LIBRARY)