1 ########################################################### 2 ## Standard rules for building an executable file. 3 ## 4 ## Additional inputs from base_rules.make: 5 ## None. 6 ########################################################### 7 8 LOCAL_IS_HOST_MODULE := true 9 ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 10 LOCAL_MODULE_CLASS := EXECUTABLES 11 endif 12 ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 13 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 14 endif 15 16 $(call host-executable-hook) 17 18 skip_build_from_source := 19 ifdef LOCAL_PREBUILT_MODULE_FILE 20 ifeq (,$(call if-build-from-source,$(LOCAL_MODULE),$(LOCAL_PATH))) 21 include $(BUILD_PREBUILT) 22 skip_build_from_source := true 23 endif 24 endif 25 26 ifndef skip_build_from_source 27 28 include $(BUILD_SYSTEM)/binary.mk 29 30 $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) 31 $(transform-host-o-to-executable) 32 33 endif # skip_build_from_source 34