Linking Multiple .c Files Together In Android.mk
How do i link up or 'use' multiple .c files in the Android.mk file? It currently looks like this LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := ndk_demo L
Solution 1:
If you want to specify several c files, the syntax is like this:
LOCAL_SRC_FILES := \
my_c_file1.c \
my_c_file1.c \
my_c_file2.c \
my_last_c_file.c
Add the path to your header files into the make file with this directive:
LOCAL_C_INCLUDES := \
/my_path1_to_h_files/ \
/my_path2_to_h_files/ \
/my_pathN_to_h_files/
And if your module uses some shared libraries to link then you can add this:
LOCAL_SHARED_LIBRARIES := \
lib1 \
lib2 \
lib3
Post a Comment for "Linking Multiple .c Files Together In Android.mk"