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