kaixuan1115 / notes

笔记收录
6 stars 0 forks source link

Android.mk编译可执行文件 #17

Closed kaixuan1115 closed 5 years ago

kaixuan1115 commented 5 years ago
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

FILE_LIST := $(wildcard $(LOCAL_PATH)/trunk/*.c)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)

LOCAL_MODULE := axel

LOCAL_FORCE_STATIC_EXECUTABLE := true
# LOCAL_STATIC_LIBRARIES := libc
# LOCAL_CFLAGS += -Iinclude/dir -DSOMEFLAGS

LOCAL_C_INCLUDES := $(LOCAL_PATH)/trunk

include $(BUILD_EXECUTABLE)