Android .so和.a的makefile

(1)编译动态库的模板

LOCAL_PATH := $(call my-dir)

    

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= tuhuolong.c

LOCAL_MODULE:= libtuhuolong

LOCAL_PRELINK_MODULE := false

#LOCAL_C_INCLUDES := 

#LOCAL_STATIC_LIBRARIES :=

#LOCAL_SHARED_LIBRARIES :=

include $(BUILD_SHARED_LIBRARY)


(2)静态库的模板

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_SRC_FILES:= tuhuolong.c
LOCAL_MODULE:= libtuhuolong
#LOCAL_C_INCLUDES := 
#LOCAL_STATIC_LIBRARIES :=
#LOCAL_SHARED_LIBRARIES :=
include $(BUILD_STATIC_LIBRARY)


你可能感兴趣的:(android,Module,Build,include,library,makefile)