1########################################################### 2## Standard rules for building an executable file. 3## 4## Additional inputs from base_rules.make: 5## None. 6########################################################### 7 8ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 9LOCAL_MODULE_CLASS := EXECUTABLES 10endif 11ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 12LOCAL_MODULE_SUFFIX := $(TARGET_EXECUTABLE_SUFFIX) 13endif 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. 18LOCAL_PRELINK_MODULE := false 19 20include $(BUILD_SYSTEM)/dynamic_binary.mk 21 22ifeq ($(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) 25else 26$(linked_module): $(TARGET_CRTBEGIN_DYNAMIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O) 27 $(transform-o-to-executable) 28endif 29