1 ########################################################### 2 ## Standard rules for building an executable file. 3 ## 4 ## Additional inputs from base_rules.make: 5 ## None. 6 ########################################################### 7 8 ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 9 LOCAL_MODULE_CLASS := EXECUTABLES 10 endif 11 ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 12 LOCAL_MODULE_SUFFIX := $(TARGET_EXECUTABLE_SUFFIX) 13 endif 14 15 # Executables are not prelinked. If we decide to start prelinking 16 # them, the LOCAL_PRELINK_MODULE definitions should be moved from 17 # here and shared_library.make and consolidated in dynamic_binary.make. 18 LOCAL_PRELINK_MODULE := false 19 20 include $(BUILD_SYSTEM)/dynamic_binary.mk 21 22 ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true) 23 $(linked_module): $(TARGET_CRTBEGIN_STATIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O) 24 $(transform-o-to-static-executable) 25 else 26 $(linked_module): $(TARGET_CRTBEGIN_DYNAMIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O) 27 $(transform-o-to-executable) 28 endif 29