我有一个Android.mk文件,可以创建1个可执行文件' main1'
LOCAL_SRC_FILES:= file3.c \
file2.c \
main2.c \
file1.c \
main1.c
LOCAL_MODULE:= main1
如何添加' main2.c'这是第二个可执行文件' main2'?
答案 0 :(得分:0)
main2.c已作为模块main1的源列出。只是说。
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= file3.c \
file2.c \
main2.c \
file1.c \
main1.c
LOCAL_MODULE:= main1
include $(BUILD_SHARED_LIBRARY)
# And start anew
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= main2.c
LOCAL_MODULE:= main2
include $(BUILD_SHARED_LIBRARY)